ci: test building for non-x86 target
This commit is contained in:
parent
66a16b13b9
commit
be60eb7e66
|
|
@ -8,8 +8,8 @@ variables:
|
|||
RUSTC_WRAPPER: sccache
|
||||
|
||||
before_script:
|
||||
- dnf install -y cargo rust ostree-devel
|
||||
- curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
|
||||
- dnf install -y cargo rust ostree-devel
|
||||
- curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
|
||||
|
||||
cache:
|
||||
paths:
|
||||
|
|
@ -17,8 +17,8 @@ cache:
|
|||
- sccache/
|
||||
|
||||
stages:
|
||||
- build
|
||||
- publish
|
||||
- build
|
||||
- publish
|
||||
|
||||
check:
|
||||
stage: build
|
||||
|
|
@ -137,6 +137,17 @@ build_v2020_1:
|
|||
script: cargo test --verbose --workspace --features v2020_1
|
||||
# all feature levels
|
||||
|
||||
# non-x86 build
|
||||
build_aarch64:
|
||||
stage: build
|
||||
image: rust:buster
|
||||
before_script:
|
||||
- apt-get update && apt-get install -y libostree-dev
|
||||
- rustup target add aarch64-unknown-linux-gnu
|
||||
- curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
|
||||
script:
|
||||
- PKG_CONFIG_ALLOW_CROSS=1 cargo build --verbose --workspace --all-features --target aarch64-unknown-linux-gnu
|
||||
|
||||
# docs
|
||||
pages:
|
||||
stage: publish
|
||||
|
|
|
|||
Loading…
Reference in New Issue