1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +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: task:
name: integration [ARM] name: test [ARM]
arm_container: arm_container:
dockerfile: Dockerfile.ci image: rust:1.63.0
docker_arguments: cpu: 8
ARCH: aarch64 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: test_script:
tests/run.sh - cargo test --all --locked
- cargo clippy -- -D warnings
# task: - cargo fmt --all -- --check
# name: integration [x86] before_cache_script: rm -rf $CARGO_HOME/registry/index
# container:
# dockerfile: Dockerfile.ci
# docker_arguments:
# ARCH: x86_64
# test_script:
# tests/run.sh