ci: test building for non-x86 target
This commit is contained in:
parent
66a16b13b9
commit
be60eb7e66
|
|
@ -8,17 +8,17 @@ variables:
|
||||||
RUSTC_WRAPPER: sccache
|
RUSTC_WRAPPER: sccache
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- dnf install -y cargo rust ostree-devel
|
- dnf install -y cargo rust ostree-devel
|
||||||
- curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
|
- curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- cargo/
|
- cargo/
|
||||||
- sccache/
|
- sccache/
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- publish
|
- publish
|
||||||
|
|
||||||
check:
|
check:
|
||||||
stage: build
|
stage: build
|
||||||
|
|
@ -137,6 +137,17 @@ build_v2020_1:
|
||||||
script: cargo test --verbose --workspace --features v2020_1
|
script: cargo test --verbose --workspace --features v2020_1
|
||||||
# all feature levels
|
# 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
|
# docs
|
||||||
pages:
|
pages:
|
||||||
stage: publish
|
stage: publish
|
||||||
|
|
@ -150,31 +161,31 @@ pages:
|
||||||
--extern-html-root-url glib=https://gtk-rs.org/docs
|
--extern-html-root-url glib=https://gtk-rs.org/docs
|
||||||
--extern-html-root-url gio=https://gtk-rs.org/docs
|
--extern-html-root-url gio=https://gtk-rs.org/docs
|
||||||
before_script:
|
before_script:
|
||||||
- curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
|
- curl -L "${SCCACHE_URL}" | tar -C /usr/bin/ -xz --wildcards --strip-components=1 '*/sccache'
|
||||||
script:
|
script:
|
||||||
- make merge-lgpl-docs
|
- make merge-lgpl-docs
|
||||||
- cargo rustdoc --verbose --package ostree-sys --features dox -- ${RUSTDOC_OPTS}
|
- cargo rustdoc --verbose --package ostree-sys --features dox -- ${RUSTDOC_OPTS}
|
||||||
- cargo rustdoc --verbose --package ostree --features dox -- ${RUSTDOC_OPTS}
|
- cargo rustdoc --verbose --package ostree --features dox -- ${RUSTDOC_OPTS}
|
||||||
- cp -r target/doc public
|
- cp -r target/doc public
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
# publish
|
# publish
|
||||||
publish_ostree-sys:
|
publish_ostree-sys:
|
||||||
stage: publish
|
stage: publish
|
||||||
script:
|
script:
|
||||||
- cargo publish --verbose --manifest-path sys/Cargo.toml --token $CRATES_IO_TOKEN
|
- cargo publish --verbose --manifest-path sys/Cargo.toml --token $CRATES_IO_TOKEN
|
||||||
cache: {}
|
cache: {}
|
||||||
only:
|
only:
|
||||||
- /^ostree-sys\/.+$/
|
- /^ostree-sys\/.+$/
|
||||||
|
|
||||||
publish_ostree:
|
publish_ostree:
|
||||||
stage: publish
|
stage: publish
|
||||||
script:
|
script:
|
||||||
- cargo publish --verbose --token $CRATES_IO_TOKEN
|
- cargo publish --verbose --token $CRATES_IO_TOKEN
|
||||||
cache: {}
|
cache: {}
|
||||||
only:
|
only:
|
||||||
- /^ostree\/.+$/
|
- /^ostree\/.+$/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue