Skip to content

Commit

Permalink
.github/workflows/ci.yml: exercise cargo test on Windows on ARM.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Oct 16, 2023
1 parent b125f20 commit 442e175
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ jobs:
echo '--- dry-run publish'
echo
./publish.sh --dry-run
elif [ $OSTYPE = "msys" ]; then
echo '-- build aarch64-pc-windows-msvc'
echo
rustup target add aarch64-pc-windows-msvc
mkdir .cargo
echo '[patch.crates-io]' > .cargo/config.toml
echo 'cc = { git = "https://github.com/rust-lang/cc-rs" }' >> .cargo/config.toml
cargo test --release --target=aarch64-pc-windows-msvc --no-run
find target/aarch64-pc-windows-msvc -name blst-\*.exe -exec cp {} blst-arm-test.exe \; -quit
cargo clean -p blst --release --target=aarch64-pc-windows-msvc
fi
cargo clean -p blst
cargo clean -p blst --release
Expand All @@ -111,6 +121,30 @@ jobs:
cd bindings/go
go test -test.v
- uses: actions/upload-artifact@v3
if: ${{ runner.os == 'Windows' }}
with:
name: blst-arm-test.exe
path: bindings/rust/blst-arm-test.exe
if-no-files-found: ignore

cargo-test-windows-on-arm:
runs-on: ubuntu-latest
needs: rust-n-go

steps:
- uses: actions/download-artifact@v3
with:
name: blst-arm-test.exe

- name: wine-arm64
uses: addnab/docker-run-action@v3
with:
registry: https://index.docker.io/v1/
image: linaro/wine-arm64
options: --volume ${{ github.workspace }}:/blst --network=none
run: wine-arm64 cmd /c "cd \ && \blst\blst-arm-test.exe"

misc-ubuntu-latest:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 442e175

Please sign in to comment.