Skip to content

Commit

Permalink
Expand Launchable into yjit-macos and yjit-ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
ono-max authored and hsbt committed Mar 12, 2024
1 parent 2c349cf commit 4c0c29e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/yjit-macos.yml
Expand Up @@ -93,6 +93,8 @@ jobs:
builddir: build
makeup: true
dummy-files: ${{ matrix.test_task == 'check' }}
# Set fetch-depth: 10 so that Launchable can receive commits information.
fetch-depth: 10

- name: Run configure
run: ../src/configure -C --disable-install-doc ${{ matrix.configure }}
Expand All @@ -112,6 +114,15 @@ jobs:
echo "TESTS=${TESTS}" >> $GITHUB_ENV
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests }}

- name: Set up Launchable
uses: ./.github/actions/launchable/setup
with:
os: ${{ github.repository == 'ruby/ruby' && 'macos-arm-oss' || 'macos-14' }}
test-opts: ${{ matrix.configure }}
launchable-token: ${{ secrets.LAUNCHABLE_TOKEN }}
builddir: build
srcdir: src

- name: make ${{ matrix.test_task }}
run: >-
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"}
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/yjit-ubuntu.yml
Expand Up @@ -138,6 +138,8 @@ jobs:
builddir: build
makeup: true
dummy-files: ${{ matrix.test_task == 'check' }}
# Set fetch-depth: 10 so that Launchable can receive commits information.
fetch-depth: 10

- name: Install Rust
if: ${{ matrix.rust_version }}
Expand Down Expand Up @@ -165,6 +167,15 @@ jobs:
- name: Check YJIT enabled
run: ./miniruby --yjit -v | grep "+YJIT"

- name: Set up Launchable
uses: ./.github/actions/launchable/setup
with:
os: ubuntu-20.04
test-opts: ${{ matrix.configure }}
launchable-token: ${{ secrets.LAUNCHABLE_TOKEN }}
builddir: build
srcdir: src

- name: make ${{ matrix.test_task }}
run: make -s -j ${{ matrix.test_task }} RUN_OPTS="$RUN_OPTS" MSPECOPT=--debug YJIT_BENCH_OPTS="$YJIT_BENCH_OPTS" YJIT_BINDGEN_DIFF_OPTS="$YJIT_BINDGEN_DIFF_OPTS"
timeout-minutes: 60
Expand Down

0 comments on commit 4c0c29e

Please sign in to comment.