From 4bfa4433830a4e48bc4ca43aef861d213affdd84 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 2 Jul 2023 23:33:43 +0900 Subject: [Cirrus] Set up cargo environments just once at first --- .cirrus.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to '.cirrus.yml') diff --git a/.cirrus.yml b/.cirrus.yml index 0a0732d759..c92e212d75 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -17,7 +17,7 @@ env: --color=always --tty=no RUST_BACKTRACE: 1 - INIT_ENV: ':' + INIT_ENV: config_template: &CONFIG_TEMPLATE auto_cancellation: $CIRRUS_BRANCH != 'master' @@ -40,6 +40,7 @@ config_template: &CONFIG_TEMPLATE set_env_script: # Set `GNUMAKEFLAGS`, because the flags are GNU make specific. - echo "GNUMAKEFLAGS=-s -j$((1 + $CIRRUS_CPU))" >> "$CIRRUS_ENV" + - '[ -z "$INIT_ENV" ] || printenv | sort | comm -13 - <(set -x; source $INIT_ENV && printenv | sort) | tee -a "$CIRRUS_ENV"' - cat "$CIRRUS_ENV" bundled_gems_cache: folder: .downloaded-cache @@ -55,7 +56,6 @@ config_template: &CONFIG_TEMPLATE disable_ipv6_script: sudo ./tool/disable_ipv6.sh autogen_script: ./autogen.sh configure_script: >- - $INIT_ENV && ./configure -C --enable-debug-env --disable-install-doc @@ -83,7 +83,7 @@ task: yjit_task: name: Arm64 Graviton2 / $CC YJIT env: - INIT_ENV: source $HOME/.cargo/env + INIT_ENV: $HOME/.cargo/env matrix: - CC: gcc-11 configure: --enable-yjit @@ -92,19 +92,19 @@ yjit_task: - sudo apt-get install -y curl - "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y $rustup_init" << : *CONFIG_TEMPLATE - make_miniruby_script: $INIT_ENV && make miniruby + make_miniruby_script: make miniruby make_bindgen_script: | if [[ "$CC" = "clang-12" ]]; then - $INIT_ENV && make yjit-bindgen + make yjit-bindgen else echo "only running bindgen on clang image" fi boot_miniruby_script: ./miniruby --yjit-call-threshold=1 -e0 test_dump_insns_script: ./miniruby --yjit-call-threshold=1 --yjit-dump-insns -e0 output_stats_script: ./miniruby --yjit-call-threshold=1 --yjit-stats -e0 - full_build_script: $INIT_ENV && make - cargo_test_script: $INIT_ENV && cd yjit && cargo test - make_test_script: $INIT_ENV && make test RUN_OPTS="--yjit-call-threshold=1 --yjit-verify-ctx" - make_test_all_script: $INIT_ENV && make test-all RUN_OPTS="--yjit-call-threshold=1 --yjit-verify-ctx" TESTOPTS="$RUBY_TESTOPTS" - make_test_spec_script: $INIT_ENV && make test-spec RUN_OPTS="--yjit-call-threshold=1 --yjit-verify-ctx" - clippy_script: $INIT_ENV && cd yjit && cargo clippy --all-targets --all-features + full_build_script: make + cargo_test_script: cd yjit && cargo test + make_test_script: make test RUN_OPTS="--yjit-call-threshold=1 --yjit-verify-ctx" + make_test_all_script: make test-all RUN_OPTS="--yjit-call-threshold=1 --yjit-verify-ctx" TESTOPTS="$RUBY_TESTOPTS" + make_test_spec_script: make test-spec RUN_OPTS="--yjit-call-threshold=1 --yjit-verify-ctx" + clippy_script: cd yjit && cargo clippy --all-targets --all-features -- cgit v1.2.3