Skip to content

CI: Add a GC.stress run to our CI #175

CI: Add a GC.stress run to our CI

CI: Add a GC.stress run to our CI #175

Workflow file for this run

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
run: ruby -e "puts 'RUN_IT=true' if rand > 0.5" >> $GITHUB_ENV
- if: env.RUN_IT == 'true'
run: bundle exec rake compile test FFI_GC_STRESS=true