@@ -309,6 +309,7 @@ jobs:
309309 - name : Run cargo test
310310 run : cargo build -p aws-lc-rs --features prebuilt-nasm --target x86_64-pc-windows-gnu
311311 open-harmony :
312+ if : github.repository_owner == 'aws'
312313 runs-on : ubuntu-latest
313314 env :
314315 DOCKER_BUILDKIT : 1
@@ -325,6 +326,7 @@ jobs:
325326 docker run -v "${{ github.workspace }}:/aws_lc_rs" ohos:5.0.0
326327
327328 alpine-linux :
329+ if : github.repository_owner == 'aws'
328330 runs-on : ubuntu-latest
329331 env :
330332 DOCKER_BUILDKIT : 1
@@ -339,3 +341,49 @@ jobs:
339341 - name : Build
340342 run : |
341343 docker run -v "${{ github.workspace }}:/aws_lc_rs" alpine:3.20
344+
345+ msys2-clang :
346+ if : github.repository_owner == 'aws'
347+ runs-on : windows-latest
348+ env :
349+ AWS_LC_SYS_EXTERNAL_BINDGEN : 1
350+ strategy :
351+ fail-fast : false
352+ matrix :
353+ include :
354+ - { sys: mingw64, env: x86_64, target: x86_64-pc-windows-gnu, cc: gcc, cxx: g++ }
355+ - { sys: ucrt64, env: ucrt-x86_64, target: x86_64-pc-windows-gnu, cc: gcc, cxx: g++ }
356+ - { sys: clang64, env: clang-x86_64, target: x86_64-pc-windows-gnullvm, cc: clang, cxx: clang++ }
357+ steps :
358+ - name : Install MSYS2
359+ uses : msys2/setup-msys2@v2
360+ id : setup_msys2
361+ with :
362+ msystem : ${{ matrix.sys }}
363+ update : true
364+ pacboy : >-
365+ rust-bindgen
366+ cc
367+ nasm
368+ go
369+ - name : Update Environment
370+ shell : bash
371+ run : |
372+ echo "GOPATH=${{ steps.setup_msys2.outputs.msys2-location }}\${{ matrix.sys }}" >> $GITHUB_ENV
373+ echo "GOROOT=${{ steps.setup_msys2.outputs.msys2-location }}\${{ matrix.sys }}\lib\go" >> $GITHUB_ENV
374+ echo "CC=${{ steps.setup_msys2.outputs.msys2-location }}\${{ matrix.sys }}\bin\${{ matrix.cc }}.exe" >> $GITHUB_ENV
375+ echo "CXX=${{ steps.setup_msys2.outputs.msys2-location }}\${{ matrix.sys }}\bin\${{ matrix.cxx }}.exe" >> $GITHUB_ENV
376+ echo "${{ steps.setup_msys2.outputs.msys2-location }}\${{ matrix.sys }}\bin" >> $GITHUB_PATH
377+ - name : Checkout
378+ uses : actions/checkout@v4
379+ with :
380+ submodules : " recursive"
381+ - uses : dtolnay/rust-toolchain@master
382+ id : toolchain
383+ with :
384+ toolchain : stable
385+ target : ${{matrix.target}}
386+ - name : Build
387+ run : cargo build -p aws-lc-rs --target ${{matrix.target}} --features bindgen
388+ - name : Test
389+ run : cargo test -p aws-lc-rs --target ${{matrix.target}} --features bindgen
0 commit comments