Skip to content

Commit

Permalink
ci: use /dev/shm if it is available
Browse files Browse the repository at this point in the history
Signed-off-by: Kentaro Hayashi <[email protected]>
  • Loading branch information
kenhys committed Dec 27, 2024
1 parent 51eb2cb commit 0758a40
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,44 @@ concurrency:
permissions: read-all

jobs:
test:
linux:
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
os: ['ubuntu-latest', 'macos-latest']
ruby-version: ['3.4', '3.3', '3.2', '3.1']
exclude:
- os: 'windows-latest'
ruby-version: '3.4'
defaults:
run:
working-directory: /dev/shm

name: Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Ruby
uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.0
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install addons
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get install libgmp3-dev libcap-ng-dev
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake test TESTOPTS="-v --no-show-detail-immediately"

jobs:
windows:
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
fail-fast: false
matrix:
os: ['macos-latest']
ruby-version: ['3.4', '3.3', '3.2', '3.1']
exclude:
- os: 'windows-latest'
Expand Down

0 comments on commit 0758a40

Please sign in to comment.