CI: Add a GC.stress run to our CI #179
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
gc_stress: | |
# if: github.ref == 'refs/heads/master' | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu ] | |
ruby: [ ruby-head ] | |
runs-on: ${{ matrix.os }}-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- run: bundle install | |
- run: bundle exec rake libffi | |
- name: Set env | |
id: run_it | |
run: ruby -e "puts 'RUN_IT=true' if rand > 0.5" >> $GITHUB_OUTPUT | |
- if: steps.run_it.outputs.run_it == 'true' | |
run: bundle exec rake compile test FFI_GC_STRESS=true |