Skip to content

Commit

Permalink
Increase timeout for debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Oct 28, 2024
1 parent db0ad9e commit 70d1905
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/modgc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- name: mmtk
mmtk_plan: MarkSweep
mmtk_build: debug
timeout: 60
os: [macos-latest, ubuntu-latest]
include:
- test_task: check
Expand Down Expand Up @@ -118,7 +119,13 @@ jobs:
- name: Build MMTK Ruby lib
run: |
cd ../src/gc/mmtk
cargo build ${{ matrix.gc.mmtk_build != 'debug' && format('--{0}', matrix.gc.mmtk_build) || format('') }}
if [[ ${{ matrix.gc.mmtk_build }} == release ]]; then
cargo build --release
else
cargo build
# Debug builds run much slower so we should increase the timeout
echo 'RUBY_TEST_TIMEOUT_SCALE=10' >> $GITHUB_ENV
fi
echo 'RUST_LOG=' >> $GITHUB_ENV
echo 'MMTK_PLAN=${{ matrix.gc.mmtk_plan }}' >> $GITHUB_ENV
echo 'EXCLUDES=../src/test/.excludes-mmtk' >> $GITHUB_ENV
Expand Down

0 comments on commit 70d1905

Please sign in to comment.