Skip to content

Commit 94b1bd7

Browse files
authored
Merge pull request #27 from ruby/fix-ci
Explicitly install libreadline to Ubuntu jobs
2 parents 9ee1b1a + e90ea8d commit 94b1bd7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ jobs:
1616
matrix:
1717
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
1818
os: [ ubuntu-latest, macos-latest ]
19+
target: [ libedit, libreadline ]
1920
runs-on: ${{ matrix.os }}
2021
steps:
2122
- uses: actions/checkout@v4
2223
- name: Install libedit
23-
run: sudo apt-get install -q libedit-dev libedit2
24+
run: sudo apt-get install -q ${{ matrix.target }}-dev
2425
if: startsWith(matrix.os, 'ubuntu')
2526
- name: Install libedit
2627
run: brew install libedit
@@ -37,5 +38,7 @@ jobs:
3738
run: rake compile test
3839
- name: Run test with libedit enabled
3940
run: rake clobber compile test -- --enable-libedit
41+
if: matrix.target == 'libedit'
4042
- name: Run test with libedit disabled
4143
run: rake clobber compile test -- --disable-libedit
44+
if: matrix.target == 'libreadline'

0 commit comments

Comments
 (0)