From: Christopher Degawa Date: Tue, 3 Oct 2023 00:17:07 +0000 (-0500) Subject: github: re-enable normal mingw build X-Git-Tag: upstream/1.3.268~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dedcfae3782e4db579b7e4e3ef9668de471bc635;p=platform%2Fupstream%2FVulkan-Loader.git github: re-enable normal mingw build pulls uasm from msys2 Signed-off-by: Christopher Degawa --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e93ec682..ce7f6e72 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -416,36 +416,42 @@ jobs: # MinGW uses JWASM to compile the assembly code - since that isn't available on github actions, this run is disabled - # mingw: - # runs-on: windows-2022 - # defaults: - # run: - # shell: bash - # steps: - # - uses: actions/checkout@v3 - # - name: Setup ccache - # uses: hendrikmuhs/ccache-action@v1.2 - # with: - # key: mingw-ccache - # - uses: actions/setup-python@v4 - # with: - # python-version: '3.8' - # - uses: lukka/get-cmake@latest - # - name: GCC Version - # run: gcc --version # If this fails MINGW is not setup correctly - # - name: Configure - # run: cmake -S. -B build -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Release - # env: - # LDFLAGS: -fuse-ld=lld # MINGW linking is very slow. Use llvm linker instead. - # CMAKE_C_COMPILER_LAUNCHER: ccache - # CMAKE_CXX_COMPILER_LAUNCHER: ccache - # CMAKE_GENERATOR: Ninja - # - name: Build - # run: cmake --build build -- --quiet - # - name: Install - # run: cmake --install build --prefix build/install - # - name: MinGW ccache stats # The Post Setup ccache doesn't work right on MinGW - # run: ccache --show-stats + mingw: + runs-on: windows-2022 + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v3 + - name: Setup ccache + uses: hendrikmuhs/ccache-action@v1.2 + with: + key: mingw-ccache + - uses: actions/setup-python@v4 + with: + python-version: '3.8' + - uses: lukka/get-cmake@latest + - name: GCC Version + run: gcc --version # If this fails MINGW is not setup correctly + - name: Setup uasm + run: | + C:/msys64/usr/bin/pacman -Sy --noconfirm --needed mingw-w64-x86_64-uasm + printf '%s\n' 'C:/msys64/mingw64/bin' >> $GITHUB_PATH + - name: UASM Check + run: uasm -? + - name: Configure + run: cmake -S. -B build -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Release + env: + LDFLAGS: -fuse-ld=lld # MINGW linking is very slow. Use llvm linker instead. + CMAKE_C_COMPILER_LAUNCHER: ccache + CMAKE_CXX_COMPILER_LAUNCHER: ccache + CMAKE_GENERATOR: Ninja + - name: Build + run: cmake --build build -- --quiet + - name: Install + run: cmake --install build --prefix build/install + - name: MinGW ccache stats # The Post Setup ccache doesn't work right on MinGW + run: ccache --show-stats mingw-no-asm: runs-on: windows-2022