11name : test
22
3- on :
4- push :
5- branches :
3+ on :
64 pull_request :
75 schedule :
86 - cron : ' 0 0 * * SUN'
@@ -13,6 +11,11 @@ defaults:
1311 run :
1412 shell : bash
1513
14+ # cancel previous runs if new commits are pushed to the PR, but run for each commit on master
15+ concurrency :
16+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
17+ cancel-in-progress : true
18+
1619jobs :
1720 self-trigger :
1821 runs-on : ubuntu-latest
4346 run : |
4447 echo "CACHE_ROOT=$HOME/cache-root" >> $GITHUB_ENV
4548
46- - uses : actions/checkout@v2
49+ - uses : actions/checkout@v4
4750 with :
4851 ref : ${{ github.ref }}
4952
6972 if : steps.cache-deps.outputs.cache-hit != 'true'
7073 run : |
7174 sudo apt-get --yes update
75+ # https://github.com/actions/runner-images/issues/2139
76+ sudo apt-get remove nginx-core nginx-full nginx-light nginx-extras
77+ sudo apt-get remove libgd3
7278 sudo apt-get install --yes libsodium23 libsodium-dev build-essential zlib1g-dev libpcre3 libpcre3-dev libssl-dev libxslt1-dev libxml2-dev libgeoip-dev libgd-dev libperl-dev libcurl4-openssl-dev
7379
7480 - name : Download and install ModSecurity
@@ -115,7 +121,7 @@ jobs:
115121 python-version : ' 3.x'
116122 architecture : ' x64'
117123
118- - uses : actions/checkout@v2
124+ - uses : actions/checkout@v4
119125 with :
120126 ref : ${{ github.ref }}
121127
@@ -143,6 +149,9 @@ jobs:
143149 - name : Install dependencies
144150 run : |
145151 sudo apt-get --yes update
152+ # https://github.com/actions/runner-images/issues/2139
153+ sudo apt-get remove nginx-core nginx-full nginx-light nginx-extras
154+ sudo apt-get remove libgd3
146155 sudo apt-get install --yes libsodium23 libsodium-dev build-essential zlib1g-dev libpcre3 libpcre3-dev libssl-dev libxslt1-dev libxml2-dev libgeoip-dev libgd-dev libperl-dev libcurl4-openssl-dev
147156
148157 - name : Download nginx-${{ matrix.nginx-version }}
@@ -222,21 +231,21 @@ jobs:
222231 version : ['stable', 'mainline']
223232 target : ['glibc', 'musl']
224233 steps :
225- - uses : actions/checkout@v2
234+ - uses : actions/checkout@v4
226235 with :
227236 ref : ${{ github.ref }}
228237 - name : Set up QEMU
229- uses : docker/setup-qemu-action@v1
238+ uses : docker/setup-qemu-action@v3
230239 - name : Set up Docker Buildx
231- uses : docker/setup-buildx-action@v1
240+ uses : docker/setup-buildx-action@v3
232241 - name : Build module
233242 run : docker build --file docker/Dockerfile.${{ matrix.target }} --build-arg=NGX_VER=${{ matrix.version }} .
234243 triger :
235244 runs-on : ubuntu-latest
236245 if : ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && (github.ref == 'refs/heads/lts' || github.ref == 'refs/heads/current')) }}
237246 needs : ['native', 'docker']
238247 steps :
239- - uses : actions/checkout@v2
248+ - uses : actions/checkout@v4
240249 with :
241250 ref : ${{ github.ref }}
242251 - uses : actions/setup-python@v2
0 commit comments