Skip to content

dont fail fast

dont fail fast #9

Workflow file for this run

name: ModGC
on:
push:
paths-ignore:
- '**.md'
pull_request:
# Do not use paths-ignore for required status checks
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
merge_group:
concurrency:
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}
permissions:
contents: read
jobs:
check:
strategy:
fail-fast: false
matrix:
gc:
- name: mmtk
mmtk_plan: MarkSweep
mmtk_build: release
- name: mmtk
mmtk_plan: MarkSweep
mmtk_build: debug
timeout: 60
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Install libraries (macOS)
uses: ./.github/actions/setup/macos
if: ${{ contains(matrix.os, 'macos') }}
- name: Install libraries (Ubuntu)
uses: ./.github/actions/setup/ubuntu
if: ${{ contains(matrix.os, 'ubuntu') }}
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Set MMTk environment variables
run: |
if [[ ${{ matrix.gc.mmtk_build }} == debug ]]; then
echo 'RUST_LOG=' >> $GITHUB_ENV
# Debug builds run much slower so we should increase the timeout
echo 'RUBY_TEST_TIMEOUT_SCALE=10' >> $GITHUB_ENV
# SYNTAX_SUGGEST_TIMEOUT defaults to 1 second
echo 'SYNTAX_SUGGEST_TIMEOUT=60' >> $GITHUB_ENV
fi
echo 'MMTK_PLAN=${{ matrix.gc.mmtk_plan }}' >> $GITHUB_ENV
if: ${{ matrix.gc.name == 'mmtk' }}
- uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854 # v1.190.0
with:
ruby-version: '3.3'
bundler: none
if: ${{ contains(matrix.os, 'ubuntu') }}
- name: make sure that kern.coredump=1
run: |
sysctl -n kern.coredump
sudo sysctl -w kern.coredump=1
sudo chmod -R +rwx /cores/
if: ${{ contains(matrix.os, 'macos') }}
- name: Install Bundler dependencies
run: bundle install
- name: build Ruby & MMTk shared GC
run: rake compile
- name: Verify MMTk bindgen
run: |
cd gc/mmtk
cargo install --force cbindgen
cbindgen --config cbindgen.toml --output ../mmtk.h
if read -n1 -d '' < <(git diff ../mmtk.h); then
git diff ../mmtk.h
exit 1
fi
- name: make check
run: make -s check
timeout-minutes: 40
working-directory: ./gc/mmtk/res/ruby
env:
RUBY_TESTOPTS: '-q --tty=no'
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof'
PRECHECK_BUNDLED_GEMS: 'no'