Skip to content

Commit 2bc2ff8

Browse files
committed
Test install
1 parent 3813a43 commit 2bc2ff8

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 26 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,28 @@ 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: ${INST} install gperf
80+
env:
81+
INST: >-
82+
${{
83+
(startsWith(matrix.os, 'unbutu') && 'apt') ||
84+
(startsWith(matrix.os, 'macos') && 'brew') ||
85+
(startsWith(matrix.os, 'windows') && 'choco') ||
86+
'false'
87+
}}
88+
if: ${{ steps.build.outputs.gem }}
89+
90+
- name: Install package
91+
run: gem install ${{ steps.build.outputs.gem }}
92+
if: ${{ steps.build.outputs.gem }}
93+
6894
- name: Upload package
6995
uses: actions/upload-artifact@v7
7096
with:

0 commit comments

Comments
 (0)