simplify #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
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 | |
with: | |
sparse-checkout-cone-mode: false | |
sparse-checkout: /.github | |
- 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: 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: Delete unused SDKs | |
# To free up disk space to not run out during the run | |
run: | | |
sudo rm -rf ~/.dotnet | |
sudo rm -rf /Library/Android | |
sudo rm -rf /Library/Developer/CoreSimulator | |
continue-on-error: true | |
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 | |
env: | |
RUBY_TESTOPTS: '-q --tty=no' | |
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof' | |
PRECHECK_BUNDLED_GEMS: 'no' | |