1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 01:43:29 +01:00

Use Cirrus CI for building and running unittests on ARM

This commit is contained in:
Roman Zeyde 2023-06-30 11:56:37 +03:00
parent e3b2eb3e4b
commit 2a8eb43916

View File

@ -1,42 +1,25 @@
# task:
# name: test [x86]
# container:
# image: rust:1.63.0
# cpu: 8
# memory: 15G
# registry_cache:
# folder: $CARGO_HOME/registry
# fingerprint_script: cat Cargo.lock
# target_cache:
# folder: target
# fingerprint_script:
# - rustc --version
# - cat Cargo.lock
# build_script:
# - apt-get update
# - apt-get install -qqy clang
# - rustup component add clippy rustfmt
# - cargo build --all --locked
# test_script:
# - cargo test --all --locked
# - cargo clippy -- -D warnings
# - cargo fmt --all -- --check
# before_cache_script: rm -rf $CARGO_HOME/registry/index
task:
name: integration [ARM]
name: test [ARM]
arm_container:
dockerfile: Dockerfile.ci
docker_arguments:
ARCH: aarch64
image: rust:1.63.0
cpu: 8
memory: 8G
registry_cache:
folder: $CARGO_HOME/registry
fingerprint_script: cat Cargo.lock
target_cache:
folder: target
fingerprint_script:
- rustc --version
- cat Cargo.lock
build_script:
- apt-get update -qqy
- apt-get install -qqy clang
- rustup component add clippy rustfmt
- cargo check --all --locked
- cargo build --all --locked
test_script:
tests/run.sh
# task:
# name: integration [x86]
# container:
# dockerfile: Dockerfile.ci
# docker_arguments:
# ARCH: x86_64
# test_script:
# tests/run.sh
- cargo test --all --locked
- cargo clippy -- -D warnings
- cargo fmt --all -- --check
before_cache_script: rm -rf $CARGO_HOME/registry/index