Skip to content

CI for mingw64 and ucrt64 w/ msys2 #2502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions .github/workflows/windows-alt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,39 +187,49 @@ 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
uses: threeal/[email protected]
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 \
Expand Down
Loading