Skip to content

Commit

Permalink
First try with GHA for gnullvm
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Jul 12, 2022
1 parent 931bcc9 commit 2e5197c
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
#
image: [macos-latest, ubuntu-latest]
version: [stable, nightly]
target: [x86_64-pc-windows-gnu]
target: [x86_64-pc-windows-gnu, aarch64-pc-windows-gnullvm, x86_64-pc-windows-gnullvm]
runs-on: ${{ matrix.image }}

steps:
Expand All @@ -45,10 +45,28 @@ jobs:
run: brew install mingw-w64
if: startsWith(matrix.image, 'macos-') && matrix.target == 'x86_64-pc-windows-gnu'

- name: Install LLVM MinGW toolchain
run: |
name='llvm-mingw-20220323-ucrt-ubuntu-18.04-x86_64'
curl -L -o $name.tar.xz https://github.com/mstorsjo/llvm-mingw/releases/download/20220323/$name.tar.xz
tar -xf $name.tar.xz
echo "$name/bin" >> $GITHUB_PATH
if: startsWith(matrix.image, 'ubuntu-') && contains(matrix.target, 'gnullvm') && matrix.version == 'nightly'

- name: Test
shell: pwsh
run: |
cargo test --no-run --target ${{ matrix.target }} -p test_win32
if (-Not (Resolve-Path "target/*/debug/deps/test_win32-*.exe" | Test-Path)) {
throw "Failed to find test_win32 executable."
}
if: ! contains(matrix.target, 'gnullvm')

- name: Test with build-std
shell: pwsh
run: |
cargo test --no-run --target ${{ matrix.target }} -Z build-std -p test_win32
if (-Not (Resolve-Path "target/*/debug/deps/test_win32-*.exe" | Test-Path)) {
throw "Failed to find test_win32 executable."
}
if: contains(matrix.target, 'gnullvm')

0 comments on commit 2e5197c

Please sign in to comment.