Skip to content

Commit dce8d2c

Browse files
committed
Test install
1 parent 3813a43 commit dce8d2c

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
run: |
5757
rake build
5858
echo "pkg=${GITHUB_REPOSITORY#*/}-${PLATFORM:-${RUNNING_OS%-*}}" >> $GITHUB_OUTPUT
59+
if [ -z "${PLATFORM}" ]; then
60+
echo "gem=pkg/$(ls -I '*-java.gem') pkg/)" >> $GITHUB_OUTPUT
61+
fi
5962
env:
6063
RUNNING_OS: ${{matrix.os}}
6164
PLATFORM: ${{ startsWith(matrix.ruby, 'jruby') && 'java' || '' }}
@@ -65,6 +68,28 @@ jobs:
6568
(matrix.ruby == needs.ruby-versions.outputs.latest || matrix.ruby == 'jruby-head')
6669
}}
6770
shell: bash
71+
72+
- name: Install package
73+
run: gem install ${{ steps.build.outputs.gem }}
74+
if: ${{ steps.build.outputs.gem }}
75+
76+
- name: Install gperf
77+
id: gperf
78+
run: ${INST} install gperf
79+
env:
80+
INST: >-
81+
${{
82+
(startsWith(matrix.os, 'unbutu') && 'apt') ||
83+
(startsWith(matrix.os, 'macos') && 'brew') ||
84+
(startsWith(matrix.os, 'windows') && 'choco') ||
85+
'false'
86+
}}
87+
if: ${{ steps.build.outputs.gem }}
88+
89+
- name: Install package
90+
run: gem install ${{ steps.build.outputs.gem }}
91+
if: ${{ steps.build.outputs.gem }}
92+
6893
- name: Upload package
6994
uses: actions/upload-artifact@v7
7095
with:

0 commit comments

Comments
 (0)