From 2a8eb4391688537f426330c6c3385bb3f304130e Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Fri, 30 Jun 2023 11:56:37 +0300 Subject: [PATCH] Use Cirrus CI for building and running unittests on ARM --- .cirrus.yml | 61 +++++++++++++++++++---------------------------------- 1 file changed, 22 insertions(+), 39 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 3c7614a..94847aa 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -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