Bundled gems test needs `prepare-gems`

`prepare-gems` downloads and extracts the bundled gems, and these gems
are built by `build-exts` now.
This commit is contained in:
Nobuyoshi Nakada 2022-07-17 08:56:17 +09:00
Родитель b291c972fa
Коммит 91c05b34cd
5 изменённых файлов: 11 добавлений и 8 удалений

5
.github/workflows/bundled_gems.yml поставляемый
Просмотреть файл

@ -101,6 +101,11 @@ jobs:
make
if: ${{ steps.diff.outcome == 'failure' }}
- name: Prepare bundled gems
run: |
make -s prepare-gems
if: ${{ steps.diff.outcome == 'failure' }}
- name: Test bundled gems
run: |
make -s test-bundled-gems

2
.github/workflows/compilers.yml поставляемый
Просмотреть файл

@ -249,8 +249,6 @@ jobs:
- run: make test
- run: make install
if: ${{ matrix.entry.check }}
- run: make prepare-gems
if: ${{ matrix.entry.check }}
- run: make test-tool
if: ${{ matrix.entry.check }}
- run: make test-all TESTS='-- ruby -ext-'

4
.github/workflows/macos.yml поставляемый
Просмотреть файл

@ -55,11 +55,11 @@ jobs:
- name: Run configure
run: ../src/configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline)
- run: make incs
- run: make prepare-gems
if: ${{ matrix.test_task == 'test-bundled-gems' }}
- run: make
- run: make leaked-globals
if: ${{ matrix.test_task == 'check' }}
- run: make prepare-gems
if: ${{ matrix.test_task == 'check' }}
- name: make ${{ matrix.test_task }}
run: |
make -s ${{ matrix.test_task }} ${TESTS:+TESTS=`echo "$TESTS" | sed 's| |$$/ -n!/|g;s|^|-n!/|;s|$|$$/|'`}

4
.github/workflows/ubuntu.yml поставляемый
Просмотреть файл

@ -87,11 +87,11 @@ jobs:
$SETARCH ../src/configure -C --disable-install-doc ${{ matrix.configure }}
${arch:+--target=$arch-$OSTYPE --host=$arch-$OSTYPE}
- run: $SETARCH make incs
- run: $SETARCH make prepare-gems
if: ${{ matrix.test_task == 'test-bundled-gems' }}
- run: $SETARCH make
- run: $SETARCH make leaked-globals
if: ${{ matrix.test_task == 'check' }}
- run: $SETARCH make prepare-gems
if: ${{ matrix.test_task == 'check' }}
- name: Create dummy files in build dir
run: |
$SETARCH ./miniruby -e '(("a".."z").to_a+("A".."Z").to_a+("0".."9").to_a+%w[foo bar test zzz]).each{|basename|File.write("#{basename}.rb", "raise %(do not load #{basename}.rb)")}'

4
.github/workflows/yjit-ubuntu.yml поставляемый
Просмотреть файл

@ -98,11 +98,11 @@ jobs:
- name: Run configure
run: ../src/configure -C --disable-install-doc ${{ matrix.configure }}
- run: make incs
- run: make prepare-gems
if: ${{ matrix.test_task == 'test-bundled-gems' }}
- run: make -j
- run: make leaked-globals
if: ${{ matrix.test_task == 'check' }}
- run: make prepare-gems
if: ${{ matrix.test_task == 'check' }}
- name: Create dummy files in build dir
run: |
./miniruby -e '(("a".."z").to_a+("A".."Z").to_a+("0".."9").to_a+%w[foo bar test zzz]).each{|basename|File.write("#{basename}.rb", "raise %(do not load #{basename}.rb)")}'