Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Oct 29, 2023
1 parent 676c954 commit 89ed2d7
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
ruby-versions:
if: ${{ startsWith(github.repository, 'ruby/') || github.event_name != 'schedule' }}
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
uses: nobu/actions/.github/workflows/ruby_versions.yml@latest
with:
engine: cruby-truffleruby
min_version: 2.6
Expand Down Expand Up @@ -33,21 +33,14 @@ jobs:
bundler-cache: true
- name: Run test
run: bundle exec rake compile test
- name: Select the latest ruby release
id: latest
run: |
printenv versions | jq -r '[.[] | select(test("^[0-9]"))] | "version="+max' >> $GITHUB_OUTPUT
env:
versions: ${{needs.ruby-versions.outputs.versions}}
shell: sh
- id: build
run: |
git fetch --force --no-tags origin 'refs/tags/v*:refs/tags/v*'
bundle exec rake build
echo "pkg=${GITHUB_REPOSITORY#*/}-${RUNNING_OS%-*}" >> $GITHUB_OUTPUT
env:
RUNNING_OS: ${{matrix.os}}
if: ${{matrix.ruby == steps.latest.outputs.version}}
if: ${{matrix.ruby == needs.ruby-versions.outputs.latest}}
shell: bash
# Ubuntu 20.04 still has libyaml 0.2.2
- name: Upload package
Expand Down

0 comments on commit 89ed2d7

Please sign in to comment.