merge revision(s) 4bfa4433830a4e48bc4ca43aef861d213affdd84:

[Cirrus] Set up cargo environments just once at first

	---
	 .cirrus.yml | 22 +++++++++++-----------
	 1 file changed, 11 insertions(+), 11 deletions(-)
This commit is contained in:
nagachika 2023-07-16 23:28:37 +09:00
Родитель 35b0f10519
Коммит 6feef620c5
2 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -17,7 +17,7 @@ env:
--color=always --color=always
--tty=no --tty=no
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
INIT_ENV: ':' INIT_ENV:
config_template: &CONFIG_TEMPLATE config_template: &CONFIG_TEMPLATE
skip: "changesIncludeOnly('doc/**', '**.{md,rdoc,ronn,[1-8]}', '.document')" skip: "changesIncludeOnly('doc/**', '**.{md,rdoc,ronn,[1-8]}', '.document')"
@ -38,6 +38,7 @@ config_template: &CONFIG_TEMPLATE
set_env_script: set_env_script:
# Set `GNUMAKEFLAGS`, because the flags are GNU make specific. # Set `GNUMAKEFLAGS`, because the flags are GNU make specific.
- echo "GNUMAKEFLAGS=-s -j$((1 + $CIRRUS_CPU))" >> "$CIRRUS_ENV" - 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" - cat "$CIRRUS_ENV"
bundled_gems_cache: bundled_gems_cache:
folder: .downloaded-cache folder: .downloaded-cache
@ -53,7 +54,6 @@ config_template: &CONFIG_TEMPLATE
disable_ipv6_script: sudo ./tool/disable_ipv6.sh disable_ipv6_script: sudo ./tool/disable_ipv6.sh
autogen_script: ./autogen.sh autogen_script: ./autogen.sh
configure_script: >- configure_script: >-
$INIT_ENV &&
./configure -C ./configure -C
--enable-debug-env --enable-debug-env
--disable-install-doc --disable-install-doc
@ -82,7 +82,7 @@ task:
yjit_task: yjit_task:
name: Arm64 Graviton2 / $CC YJIT name: Arm64 Graviton2 / $CC YJIT
env: env:
INIT_ENV: source $HOME/.cargo/env INIT_ENV: $HOME/.cargo/env
matrix: matrix:
- CC: gcc-11 - CC: gcc-11
configure: --enable-yjit configure: --enable-yjit
@ -91,18 +91,18 @@ yjit_task:
- sudo apt-get install -y curl - sudo apt-get install -y curl
- "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y $rustup_init" - "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y $rustup_init"
<< : *CONFIG_TEMPLATE << : *CONFIG_TEMPLATE
make_miniruby_script: $INIT_ENV && make miniruby make_miniruby_script: make miniruby
make_bindgen_script: | make_bindgen_script: |
if [[ "$CC" = "clang-12" ]]; then if [[ "$CC" = "clang-12" ]]; then
$INIT_ENV && make yjit-bindgen make yjit-bindgen
else else
echo "only running bindgen on clang image" echo "only running bindgen on clang image"
fi fi
boot_miniruby_script: ./miniruby --yjit-call-threshold=1 -e0 boot_miniruby_script: ./miniruby --yjit-call-threshold=1 -e0
test_dump_insns_script: ./miniruby --yjit-call-threshold=1 --yjit-dump-insns -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 output_stats_script: ./miniruby --yjit-call-threshold=1 --yjit-stats -e0
full_build_script: $INIT_ENV && make full_build_script: make
cargo_test_script: $INIT_ENV && cd yjit && cargo test cargo_test_script: cd yjit && cargo test
make_test_script: $INIT_ENV && make test RUN_OPTS="--yjit-call-threshold=1 --yjit-verify-ctx" make_test_script: 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_all_script: 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" make_test_spec_script: make test-spec RUN_OPTS="--yjit-call-threshold=1 --yjit-verify-ctx"

Просмотреть файл

@ -11,7 +11,7 @@
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
#define RUBY_VERSION_TEENY 2 #define RUBY_VERSION_TEENY 2
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
#define RUBY_PATCHLEVEL 75 #define RUBY_PATCHLEVEL 76
#include "ruby/version.h" #include "ruby/version.h"
#include "ruby/internal/abi.h" #include "ruby/internal/abi.h"