Skip to content

Commit 4de4908

Browse files
authored
Actually deal with AmazonLinux2 (hopefully)
1 parent 6e9f30c commit 4de4908

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/test.yml

+19-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
base-image:
1414
- ubuntu:focal
1515
- ubuntu:jammy
16-
- amazonlinux:2
1716
- redhat/ubi9:latest
1817
test-args:
1918
- '{}'
@@ -23,11 +22,28 @@ jobs:
2322
container: ${{ matrix.base-image }}
2423
steps:
2524
- name: Checkout self
26-
if: ${{ !startsWith(matrix.base-image, 'amazonlinux') }}
2725
uses: actions/checkout@v4
26+
- name: Test
27+
uses: vapor/swiftly-action@main
28+
with: ${{ fromJSON(matrix.test-args) }}
29+
test-amznlinux2:
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
base-image:
34+
- amazonlinux:2
35+
test-args:
36+
- '{}'
37+
- '{"toolchain":"latest"}'
38+
- '{"toolchain":"5.9"}'
39+
runs-on: ubuntu-latest
40+
container: ${{ matrix.base-image }}
41+
steps:
42+
- name: Add missing dependencies
43+
run: yum install -y git tar
2844
- name: Checkout self
29-
if: ${{ startsWith(matrix.base-image, 'amazonlinux') }}
3045
uses: actions/checkout@v3
3146
- name: Test
3247
uses: vapor/swiftly-action@main
3348
with: ${{ fromJSON(matrix.test-args) }}
49+

0 commit comments

Comments
 (0)