Skip to content

Commit

Permalink
wip: ci linux matrix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
antmak committed Nov 8, 2023
1 parent d0a17bf commit d956c8d
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 70 deletions.
54 changes: 6 additions & 48 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
fail-fast: false
matrix:
platform: [x86_64-linux-gnu, aarch64-linux-gnu]
#target: [xtensa-softmmu, riscv32-softmmu]
target: [xtensa-softmmu, riscv32-softmmu]

include:
#- platform: macos-x86_64
Expand Down Expand Up @@ -48,65 +48,23 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install prerequisites (${{ matrix.platform }})
- name: Install prerequisites (${{ matrix.target }} @ ${{ matrix.platform }})
run: |
echo "DBG0"
echo ${{ matrix.container }}
echo ${{ matrix.runs_on }}
${{ matrix.run_prerequisites }}
# - name: Install prerequisites (Linux x86_64)
# if: ${{ matrix.platform == 'linux-amd64' }}
# env:
# DEBIAN_FRONTEND: "noninteractive"
# run: |
# sudo apt-get install -y -q --no-install-recommends \
# binutils-dev \
# ninja-build \
# libgcrypt-dev \
# libglib2.0-dev \
# libpixman-1-dev \
# libslirp-dev
# - name: Install prerequisites (macOS)
# if: ${{ matrix.platform == 'macos-x86_64' || matrix.platform == 'macos-arm64' }}
# run: |
# brew install \
# ninja \
# libgcrypt \
# glib \
# pixman \
# pkg-config \
# python@3.11
# brew link --overwrite python@3.11
# - name: Install prerequisites (Windows)
# if : ${{ matrix.platform == 'win-x86_64' }}
# uses: msys2/setup-msys2@v2
# with:
# cache: true
# msystem: mingw64
# install: >-
# mingw-w64-x86_64-python
# mingw-w64-x86_64-ninja
# mingw-w64-x86_64-gcc
# mingw-w64-x86_64-glib2
# mingw-w64-x86_64-pkg-config
# mingw-w64-x86_64-pixman
# mingw-w64-x86_64-libgcrypt
# mingw-w64-x86_64-libslirp
# diffutils git
# - name: Patch meson.build (macOS)
# if: ${{ matrix.platform == 'macos-x86_64' || matrix.platform == 'macos-arm64' }}
# run: |
# sed -i '' "s/project('qemu', \['c'\],/project('qemu', ['c', 'objc'],/" meson.build

- name: Configure (${{ matrix.platform }})
- name: Configure (${{ matrix.target }} @ ${{ matrix.platform }})
env:
TARGET: ${{ matrix.target }}
run: |
echo "DBG0"
echo ${{ matrix.container }}
echo ${{ matrix.runs_on }}
${{ matrix.run_configure }}
- name: Build
- name: Build (${{ matrix.target }} @ ${{ matrix.platform }})
run: |
ninja -C build
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/scripts/configure-cross-linux-arm64.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env bash

set -euo pipefail

echo "DBG configure TARGET: ${TARGET:-}"
TARGET=${TARGET:-xtensa-softmmu}

# replace libgcrypt method to 'pkg-config'
sed -z -i "s/\(.*dependency('libgcrypt'.*method: '\)config-tool\('.*\)/\1pkg-config\2/g" -- meson.build

Expand All @@ -14,6 +19,6 @@ sed -z -i "s/\(.*dependency('libgcrypt'.*method: '\)config-tool\('.*\)/\1pkg-con
--enable-gcrypt \
--enable-slirp \
--prefix=$PWD/install/qemu \
--target-list=xtensa-softmmu \
--target-list=$TARGET \
--with-pkgversion="esp_13.1.1_20231107" \
|| { cat meson-logs/meson-log.txt && false; }
8 changes: 6 additions & 2 deletions .github/workflows/scripts/configure-linux-amd64.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/usr/bin/env bash

#FIXME ? disable-docs
set -euo pipefail

echo "DBG configure TARGET: ${TARGET:-}"
TARGET=${TARGET:-xtensa-softmmu}

#FIXME ? disable-docs
./configure \
--disable-capstone \
--disable-docs \
Expand All @@ -13,6 +17,6 @@
--enable-slirp \
--extra-cflags=-Werror \
--prefix=$PWD/install/qemu \
--target-list=xtensa-softmmu \
--target-list=$TARGET \
--with-pkgversion="esp_13.1.1_20231107" \
|| { cat meson-logs/meson-log.txt && false; }
2 changes: 2 additions & 0 deletions .github/workflows/scripts/prerequisites-cross-linux-arm64.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail

export DEBIAN_FRONTEND="noninteractive"

EXTRA_APT_SOURCES="
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/scripts/prerequisites-linux-amd64.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -euo pipefail

export DEBIAN_FRONTEND="noninteractive"

apt-get update \
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/scripts/prerequisites-linux-arm64.sh

This file was deleted.

0 comments on commit d956c8d

Please sign in to comment.