diff --git a/.github/workflows/windows-alt.yml b/.github/workflows/windows-alt.yml index 4afcedd29d..4c02d129d6 100644 --- a/.github/workflows/windows-alt.yml +++ b/.github/workflows/windows-alt.yml @@ -187,26 +187,38 @@ jobs: - name: x86_64-w64-mingw32 Build/Test run: ./tests/ci/run_cross_mingw_tests.sh x86_64 w64-mingw32 "-DCMAKE_BUILD_TYPE=Release" - mingw-clang: + msys2: if: github.repository_owner == 'aws' runs-on: windows-latest + strategy: + fail-fast: false + matrix: + include: + - { sys: mingw64 } + - { sys: ucrt64 } + - { sys: clang64 } steps: - name: Install MSYS2 uses: msys2/setup-msys2@v2 id: setup_msys2 with: - msystem: CLANG64 # x86_64 clang-based environment + msystem: ${{ matrix.sys }} update: true pacboy: >- - clang + toolchain + cmake + ninja + cc nasm go - name: Update Environment shell: bash run: | - echo "GOPATH=${{ steps.setup_msys2.outputs.msys2-location }}\clang64" >> $GITHUB_ENV - echo "GOROOT=${{ steps.setup_msys2.outputs.msys2-location }}\clang64\lib\go" >> $GITHUB_ENV - echo "${{ steps.setup_msys2.outputs.msys2-location }}\clang64\bin" >> $GITHUB_PATH + SYSROOT=$(cygpath -a -m '${{ steps.setup_msys2.outputs.msys2-location }}\${{ matrix.sys }}') + echo "GOPATH=${SYSROOT}" >> $GITHUB_ENV + echo "GOROOT=${SYSROOT}/lib/go" >> $GITHUB_ENV + echo "CMAKE_GENERATOR=Ninja" >> $GITHUB_ENV + cygpath -w ${SYSROOT}/bin >> $GITHUB_PATH - name: Checkout uses: actions/checkout@v4 - name: Setup CMake @@ -214,12 +226,10 @@ jobs: with: generator: Ninja build-dir: ./build - c-compiler: ${{ steps.setup_msys2.outputs.msys2-location }}\clang64\bin\clang.exe - cxx-compiler: ${{ steps.setup_msys2.outputs.msys2-location }}\clang64\bin\clang++.exe options: | CMAKE_SYSTEM_NAME=Windows \ CMAKE_SYSTEM_PROCESSOR=x86_64 \ - CMAKE_FIND_ROOT_PATH='${{ steps.setup_msys2.outputs.msys2-location }}\clang64\' \ + CMAKE_FIND_ROOT_PATH='${{ steps.setup_msys2.outputs.msys2-location }}\${{ matrix.sys }}\' \ CMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \ CMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ CMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \