Skip to content

Commit 3088105

Browse files
committed
Use the Leaseweb mirror for the older releases
1 parent e721a59 commit 3088105

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/tests.yaml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,17 @@ jobs:
4141
- deps
4242
strategy:
4343
matrix:
44-
version: [ 7.3, 7.4, 7.5, 7.6, 7.7 ]
44+
release:
45+
- version: 7.7
46+
mirror: "https://cdn.openbsd.org/pub/OpenBSD"
47+
- version: 7.6
48+
mirror: "https://cdn.openbsd.org/pub/OpenBSD"
49+
- version: 7.5
50+
mirror: "https://mirror.leaseweb.com/pub/OpenBSD"
51+
- version: 7.4
52+
mirror: "https://mirror.leaseweb.com/pub/OpenBSD"
53+
- version: 7.3
54+
mirror: "https://mirror.leaseweb.com/pub/OpenBSD"
4555
arch: [ amd64, i386 ]
4656
runs-on: ubuntu-latest
4757
container:
@@ -64,21 +74,23 @@ jobs:
6474
uses: actions/cache@v4
6575
with:
6676
path: ${{ env.OPENBSD_CACHE }}
67-
key: openbsd-${{ matrix.version }}-${{ matrix.arch }}-${{ github.job }}
77+
key: openbsd-${{ matrix.release.version }}-${{ matrix.arch }}-${{ github.job }}
6878
restore-keys: |
69-
openbsd-${{ matrix.version }}-${{ matrix.arch }}-${{ github.job }}
70-
openbsd-${{ matrix.version }}-${{ matrix.arch }}
71-
openbsd-${{ matrix.version }}
79+
openbsd-${{ matrix.release.version }}-${{ matrix.arch }}-${{ github.job }}
80+
openbsd-${{ matrix.release.version }}-${{ matrix.arch }}
81+
openbsd-${{ matrix.release.version }}
7282
openbsd
7383
7484
- name: Run test
75-
run: tests/base -v ${{ matrix.version }} -a ${{ matrix.arch }}
85+
run: tests/base -v ${{ matrix.release.version }} -a ${{ matrix.arch }}
86+
env:
87+
OPENBSD_MIRROR: ${{ matrix.release.mirror }}
7688

7789
- name: Keep artifacts
7890
uses: actions/upload-artifact@v4
7991
if: always()
8092
with:
81-
name: ${{ github.job }}-${{ matrix.version }}-${{ matrix.arch }}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}
93+
name: ${{ github.job }}-${{ matrix.release.version }}-${{ matrix.arch }}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}
8294
retention-days: 3
8395
path: |
8496
/${{github.job}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}/**/*

0 commit comments

Comments
 (0)