summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-08-27 21:06:53 -0600
committerAlan Somers <asomers@gmail.com>2021-08-27 21:06:53 -0600
commita593227c7e5238789919ed4eb842154f70369502 (patch)
treeee160c2f798d64fd385e560149bb3eba69224bac
parent253075aeb09417f7997cac999b24fdced20f6942 (diff)
downloadnix-a593227c7e5238789919ed4eb842154f70369502.zip
Test Linux aarch64 on real aarch64 hardware.
-rw-r--r--.cirrus.yml27
1 files changed, 15 insertions, 12 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 3a74a4a4..171172ce 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -49,9 +49,6 @@ task:
HOME: /tmp/home
PATH: $HOME/.cargo/bin:$PATH
matrix:
- - name: Linux aarch64
- env:
- TARGET: aarch64-unknown-linux-gnu
- name: Linux arm gnueabi
env:
TARGET: arm-unknown-linux-gnueabi
@@ -101,25 +98,31 @@ task:
task:
matrix:
- name: Rust Stable
+ container:
+ image: rust:latest
env:
TARGET: x86_64-unknown-linux-gnu
- TOOLCHAIN: stable
+ - name: Linux aarch64
+ arm_container:
+ image: rust:1.46
+ env:
+ TARGET: aarch64-unknown-linux-gnu
- name: Linux x86_64
+ container:
+ image: rust:1.46
env:
TARGET: x86_64-unknown-linux-gnu
- TOOLCHAIN: 1.46.0
- name: Linux x86_64 musl
+ container:
+ image: rust:1.46
env:
TARGET: x86_64-unknown-linux-musl
- TOOLCHAIN: 1.46.0
- container:
- image: rust:1.46
setup_script:
- - rustup toolchain install $TOOLCHAIN
- - rustup target add --toolchain $TOOLCHAIN $TARGET
+ - rustup target add $TARGET
+ - uname -a
script:
- - cargo +$TOOLCHAIN build --target $TARGET --all-targets
- - cargo +$TOOLCHAIN test --target $TARGET
+ - cargo build --target $TARGET --all-targets
+ - cargo test --target $TARGET
before_cache_script: rm -rf $CARGO_HOME/registry/index
# Tasks for cross-compiling, but no testing