From 3af38f0dbdf17e1fb0c05402a9afb8ede7a7a8bb Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Wed, 11 Dec 2024 13:15:58 +0100 Subject: [PATCH] debug mingw build --- .github/workflows/build.yml | 64 ++++++++++++++++++++++--------------- meson.build | 3 +- 2 files changed, 40 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f9aad347f71..eb3835ac55d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,42 +50,47 @@ jobs: fail-fast: false matrix: # Naming MinGW platforms: https://sourceforge.net/p/mingw-w64/wiki2/TypeTriplets/ - platform: [x86_64-linux-gnu, aarch64-linux-gnu, x86_64-w64-mingw32, x86_64-apple-darwin, aarch64-apple-darwin] + platform: + # - x86_64-linux-gnu + # - aarch64-linux-gnu + - x86_64-w64-mingw32 + # - x86_64-apple-darwin + # - aarch64-apple-darwin target: [xtensa-softmmu, riscv32-softmmu] include: - - platform: x86_64-linux-gnu - runs_on: ubuntu-20.04 - # Used minimal build deps - container: ubuntu:18.04 - shell: bash -e {0} - run_prerequisites: "./.github/workflows/scripts/prerequisites-old.sh" - run_configure: "./.github/workflows/scripts/configure-native.sh" - - - 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 - shell: bash -e {0} - run_prerequisites: "./.github/workflows/scripts/prerequisites-cross-linux-arm64.sh" - run_configure: "./.github/workflows/scripts/configure-cross-linux-arm64.sh" + # - platform: x86_64-linux-gnu + # runs_on: ubuntu-20.04 + # # Used minimal build deps + # container: ubuntu:18.04 + # shell: bash -e {0} + # run_prerequisites: "./.github/workflows/scripts/prerequisites-old.sh" + # run_configure: "./.github/workflows/scripts/configure-native.sh" + + # - 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 + # shell: bash -e {0} + # run_prerequisites: "./.github/workflows/scripts/prerequisites-cross-linux-arm64.sh" + # run_configure: "./.github/workflows/scripts/configure-cross-linux-arm64.sh" - platform: x86_64-w64-mingw32 runs_on: windows-2022 shell: msys2 {0} run_configure: "./.github/workflows/scripts/configure-win.sh" - - platform: x86_64-apple-darwin - runs_on: macos-13 - shell: bash -e {0} - run_prerequisites: "./.github/workflows/scripts/prerequisites-macos.sh" - run_configure: "./.github/workflows/scripts/configure-macos.sh" + # - platform: x86_64-apple-darwin + # runs_on: macos-13 + # shell: bash -e {0} + # run_prerequisites: "./.github/workflows/scripts/prerequisites-macos.sh" + # run_configure: "./.github/workflows/scripts/configure-macos.sh" - - platform: aarch64-apple-darwin - runs_on: macos-13-xlarge - shell: bash -e {0} - run_prerequisites: "./.github/workflows/scripts/prerequisites-macos.sh" - run_configure: "./.github/workflows/scripts/configure-macos.sh" + # - platform: aarch64-apple-darwin + # runs_on: macos-13-xlarge + # shell: bash -e {0} + # run_prerequisites: "./.github/workflows/scripts/prerequisites-macos.sh" + # run_configure: "./.github/workflows/scripts/configure-macos.sh" runs-on: ${{ matrix.runs_on }} container: @@ -165,6 +170,13 @@ jobs: tar -cJvf ${DIST_DIR}/${ARCHIVE_NAME} qemu > ${DIST_DIR}/dist-filelist-${TARGET}-${PLATFORM}.txt 2>&1 echo "${ARCHIVE_NAME}" > ${DIST_DIR}/file_${PLATFORM}_${TARGET} + - name: Save build/build.ninja for failed builds + if: ${{ failure() }} + uses: actions/upload-artifact@v4 + with: + name: build-ninja-${{ matrix.target }}-${{ matrix.platform }} + path: build/build.ninja + - name: Dist filelist (dbg) (${{ matrix.target }} @ ${{ matrix.platform }}) uses: actions/upload-artifact@v4 with: diff --git a/meson.build b/meson.build index 91a0aa64c640..7eeedbfcaf90 100644 --- a/meson.build +++ b/meson.build @@ -1106,7 +1106,8 @@ endif slirp = not_found if not get_option('slirp').auto() or have_system slirp = dependency('slirp', required: get_option('slirp'), - method: 'pkg-config') + method: 'pkg-config', + static: true) # slirp < 4.7 is incompatible with CFI support in QEMU. This is because # it passes function pointers within libslirp as callbacks for timers. # When using a system-wide shared libslirp, the type information for the