Skip to content

Commit

Permalink
wip: ci Win
Browse files Browse the repository at this point in the history
  • Loading branch information
antmak committed Nov 9, 2023
1 parent 4451fb7 commit 04f8056
Showing 1 changed file with 58 additions and 7 deletions.
65 changes: 58 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
echo "REPOSITORY_URL=$REPOSITORY_URL" >> "$GITHUB_OUTPUT"
echo $REPOSITORY_URL
Build:
Build-Linux:
needs: [ Vars ]
strategy:
fail-fast: false
Expand All @@ -51,20 +51,16 @@ jobs:
runs_on: ubuntu-20.04
run_prerequisites: "sudo ./.github/workflows/scripts/prerequisites-linux-amd64.sh"
run_configure: "./.github/workflows/scripts/configure-linux-amd64.sh"
shell: bash -e {0}

- platform: aarch64-linux-gnu
runs_on: ubuntu-20.04
# Used the minimal docker-hub's image instead of the heavy GitHub's one for correct croossbuild prerequisites
container: ubuntu:20.04
run_prerequisites: "./.github/workflows/scripts/prerequisites-cross-linux-arm64.sh"
run_configure: "./.github/workflows/scripts/configure-cross-linux-arm64.sh"
shell: bash -e {0}

runs-on: ${{ matrix.runs_on }}
container: ${{ matrix.container }}
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -105,9 +101,64 @@ jobs:
path: |
dist
Build-Windows:
needs: [ Vars ]
strategy:
fail-fast: false
matrix:
platform: [win-x86_64]
target: [xtensa-softmmu, riscv32-softmmu]
include:
- platform: win-x86_64
runs_on: windows-2022
extra_configure_args: ""
shell: msys2 {0}
runs-on: ${{ matrix.runs_on }}
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- uses: actions/checkout@v4

- name: Install prerequisites (${{ matrix.target }} @ ${{ matrix.platform }})
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: Configure (${{ matrix.target }} @ ${{ matrix.platform }})
run: |
which -a python
which -a python3
python3 --version
./configure \
--prefix=$PWD/install/qemu \
--target-list=xtensa-softmmu \
--with-pkgversion="dev-55" \
--enable-gcrypt \
--enable-slirp \
--disable-user \
--disable-capstone \
--disable-vnc \
--disable-sdl \
--disable-docs \
|| (cat meson-logs/meson-log.txt && false)
- name: Build (${{ matrix.target }} @ ${{ matrix.platform }})
run: |
ninja -C build install
Upload:
if: startsWith(github.ref, 'refs/tags/')
needs: [ Vars, Build ]
needs: [ Vars, Build-Linux ]
runs-on: ubuntu-latest
steps :
- name: Create a source archive
Expand Down

0 comments on commit 04f8056

Please sign in to comment.