Skip to content

Commit ea57f2d

Browse files
committed
Test install
1 parent 3813a43 commit ea57f2d

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ jobs:
5656
run: |
5757
rake build
5858
echo "pkg=${GITHUB_REPOSITORY#*/}-${PLATFORM:-${RUNNING_OS%-*}}" >> $GITHUB_OUTPUT
59+
if [ -z "${PLATFORM}" ]; then
60+
set -- pkg/*[0-9].gem
61+
echo "gem=$1" >> $GITHUB_OUTPUT
62+
fi
5963
env:
6064
RUNNING_OS: ${{matrix.os}}
6165
PLATFORM: ${{ startsWith(matrix.ruby, 'jruby') && 'java' || '' }}
@@ -65,6 +69,26 @@ jobs:
6569
(matrix.ruby == needs.ruby-versions.outputs.latest || matrix.ruby == 'jruby-head')
6670
}}
6771
shell: bash
72+
73+
- name: Install package
74+
run: gem install ${{ steps.build.outputs.gem }}
75+
if: ${{ steps.build.outputs.gem }}
76+
77+
- name: Install gperf
78+
id: gperf
79+
run: >-
80+
${{ case(
81+
startsWith(matrix.os, 'ubuntu'), 'apt',
82+
startsWith(matrix.os, 'macos'), 'brew',
83+
startsWith(matrix.os, 'windows', 'choco'
84+
'false'
85+
) }} install gperf
86+
if: ${{ steps.build.outputs.gem }}
87+
88+
- name: Install package
89+
run: gem install ${{ steps.build.outputs.gem }}
90+
if: ${{ steps.build.outputs.gem }}
91+
6892
- name: Upload package
6993
uses: actions/upload-artifact@v7
7094
with:

0 commit comments

Comments
 (0)