Skip to content

Commit a593227

Browse files
committed
Test Linux aarch64 on real aarch64 hardware.
1 parent 253075a commit a593227

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.cirrus.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ task:
4949
HOME: /tmp/home
5050
PATH: $HOME/.cargo/bin:$PATH
5151
matrix:
52-
- name: Linux aarch64
53-
env:
54-
TARGET: aarch64-unknown-linux-gnu
5552
- name: Linux arm gnueabi
5653
env:
5754
TARGET: arm-unknown-linux-gnueabi
@@ -101,25 +98,31 @@ task:
10198
task:
10299
matrix:
103100
- name: Rust Stable
101+
container:
102+
image: rust:latest
104103
env:
105104
TARGET: x86_64-unknown-linux-gnu
106-
TOOLCHAIN: stable
105+
- name: Linux aarch64
106+
arm_container:
107+
image: rust:1.46
108+
env:
109+
TARGET: aarch64-unknown-linux-gnu
107110
- name: Linux x86_64
111+
container:
112+
image: rust:1.46
108113
env:
109114
TARGET: x86_64-unknown-linux-gnu
110-
TOOLCHAIN: 1.46.0
111115
- name: Linux x86_64 musl
116+
container:
117+
image: rust:1.46
112118
env:
113119
TARGET: x86_64-unknown-linux-musl
114-
TOOLCHAIN: 1.46.0
115-
container:
116-
image: rust:1.46
117120
setup_script:
118-
- rustup toolchain install $TOOLCHAIN
119-
- rustup target add --toolchain $TOOLCHAIN $TARGET
121+
- rustup target add $TARGET
122+
- uname -a
120123
script:
121-
- cargo +$TOOLCHAIN build --target $TARGET --all-targets
122-
- cargo +$TOOLCHAIN test --target $TARGET
124+
- cargo build --target $TARGET --all-targets
125+
- cargo test --target $TARGET
123126
before_cache_script: rm -rf $CARGO_HOME/registry/index
124127

125128
# Tasks for cross-compiling, but no testing

0 commit comments

Comments
 (0)