Skip to content

Commit

Permalink
Set GEM_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 29, 2023
1 parent c268e84 commit efb06bc
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,8 @@ jobs:
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
strategy:
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu-latest, macos-latest ]
exclude:
- { os: windows-latest, ruby: head }
- { os: windows-latest, ruby: truffleruby }
- { os: windows-latest, ruby: truffleruby-head }
include:
- { os: windows-latest, ruby: mingw }
- { os: windows-latest, ruby: mswin }
ruby: [ mingw, mswin ]
os: [ windows-latest ]
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
steps:
- name: git config
Expand All @@ -38,15 +31,13 @@ jobs:
ruby-version: ${{ matrix.ruby }}
rubygems: ${{ matrix.ruby < '2.7' && '3.4.22' || '' }}
bundler-cache: true
- id: bundle
run: echo exec='bundle exec' >> $GITHUB_OUTPUT
if: ${{ matrix.ruby != 'mswin' }}
- run: echo GEM_PATH=./vendor/bundle >> $GITHUB_ENV
- name: Run test
run: ${{ steps.bundle.outputs.exec }} rake compile test
run: rake compile test
- id: build
run: |
git fetch --force --no-tags origin 'refs/tags/v*:refs/tags/v*'
${{ steps.bundle.outputs.exec }} rake build
rake build
echo "pkg=${GITHUB_REPOSITORY#*/}-${RUNNING_OS%-*}" >> $GITHUB_OUTPUT
env:
RUNNING_OS: ${{matrix.os}}
Expand Down

0 comments on commit efb06bc

Please sign in to comment.