diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef3dd84..2f7be89 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,49 +23,49 @@ jobs: - id: msrv run: echo "::set-output name=msrv::$(echo $MSRV)" - #linux_foreign: - # strategy: - # matrix: - # include: - # # 64-bit Linux/arm64 - # - target: aarch64-unknown-linux-gnu - # # NOTE vmx 2024-07-15: Use at least Rust 1.68.2 for now, so that we can use the sparse - # # index. Without this, the build times out. Once the MSRV is >= 1.68.2, we don't need - # # to special case anymore and can use the MSRV instead. - # toolchain: 1.68.2 - # arch: aarch64 - # - # runs-on: ubuntu-22.04 - # steps: - # - uses: actions/checkout@v4 - # - uses: uraimo/run-on-arch-action@v2 - # name: Run tests - # id: runtests - # with: - # arch: aarch64 - # distro: ubuntu22.04 - # - # # Not required, but speeds up builds by storing container images in - # # a GitHub package registry. - # githubToken: ${{ github.token }} - # - # env: | # YAML, but pipe character is necessary - # CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse - # - # install: | - # apt-get update -q -y - # apt-get install -q -y ocl-icd-opencl-dev curl build-essential - # curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.toolchain }} -y - # source $HOME/.cargo/env - # - # run: | - # echo "vmx: one" - # $HOME/.cargo/bin/rustup override set ${{ matrix.toolchain }} - # echo "vmx: two" - # $HOME/.cargo/bin/cargo test --release --target ${{ matrix.target }} - # echo "vmx: three" - # $HOME/.cargo/bin/cargo test --release --features portable --target ${{ matrix.target }} - # echo "vmx: four" + linux_foreign: + strategy: + matrix: + include: + # 64-bit Linux/arm64 + - target: aarch64-unknown-linux-gnu + # NOTE vmx 2024-07-15: Use at least Rust 1.68.2 for now, so that we can use the sparse + # index. Without this, the build times out. Once the MSRV is >= 1.68.2, we don't need + # to special case anymore and can use the MSRV instead. + toolchain: 1.68.2 + arch: aarch64 + + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: uraimo/run-on-arch-action@v2 + name: Run tests + id: runtests + with: + arch: aarch64 + distro: ubuntu22.04 + + # Not required, but speeds up builds by storing container images in + # a GitHub package registry. + githubToken: ${{ github.token }} + + env: | # YAML, but pipe character is necessary + CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse + + install: | + apt-get update -q -y + apt-get install -q -y ocl-icd-opencl-dev curl build-essential + curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.toolchain }} -y + source $HOME/.cargo/env + + run: | + echo "vmx: one" + $HOME/.cargo/bin/rustup override set ${{ matrix.toolchain }} + echo "vmx: two" + $HOME/.cargo/bin/cargo test --release --target ${{ matrix.target }} + echo "vmx: three" + $HOME/.cargo/bin/cargo test --release --features portable --target ${{ matrix.target }} + echo "vmx: four" # Linux tests linux: