Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,18 @@ jobs:
- name: Run test
run: rake # Attempting without 'bundle exec'
continue-on-error: ${{matrix.ruby == 'truffleruby-head'}}
- 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: |
rake build
echo "pkg=${GITHUB_REPOSITORY#*/}-${RUNNING_OS%-*}" >> $GITHUB_OUTPUT
echo "pkg=${GITHUB_REPOSITORY#*/}-${PLATFORM:-${RUNNING_OS%-*}}" >> $GITHUB_OUTPUT
env:
RUNNING_OS: ${{matrix.os}}
if: ${{matrix.ruby == steps.latest.outputs.version}}
PLATFORM: ${{ startsWith(matrix.ruby, 'jruby') && 'java' || '' }}
if: >-
${{
github.event_name == 'push' &&
(matrix.ruby == needs.ruby-versions.outputs.latest || matrix.ruby == 'jruby-head')
}}
shell: bash
- name: Upload package
uses: actions/upload-artifact@v3
Expand Down