Skip to content

Commit 61aee17

Browse files
committed
try to fix test on older version of openresty
1 parent ccbd91a commit 61aee17

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/tests.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Test
22

33
on: [push, pull_request]
44

5+
env:
6+
LIBEXPAT_DOWNLOAD_URL: https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.gz
7+
58
jobs:
69
lint:
710
runs-on: ubuntu-latest
@@ -30,9 +33,21 @@ jobs:
3033
- uses: actions/checkout@v2
3134
- name: Install deps
3235
run: |
33-
apk add --no-cache curl perl bash wget git perl-dev libarchive-tools nodejs jq expat-dev
36+
apk add --no-cache curl perl bash wget git perl-dev libarchive-tools nodejs jq
3437
ln -s /usr/bin/bsdtar /usr/bin/tar
3538
39+
- name: Build libexpat
40+
if: matrix.openresty_version == '1.17.8.2'
41+
run: |
42+
mkdir -p /tmp/expat
43+
curl -Ls $LIBEXPAT_DOWNLOAD_URL | tar -xz --strip-components=1 -f - -C /tmp/expat
44+
cd /tmp/expat && ./configure && make && make install
45+
46+
- name: Install libexpat from package manager
47+
if: matrix.openresty_version == '1.19.9.1'
48+
run: |
49+
apk add --no-cache expat-dev
50+
3651
- name: Cache
3752
uses: actions/cache@v2
3853
with:

0 commit comments

Comments
 (0)