Skip to content

Commit b72cb97

Browse files
committed
build-image.yml: Try matrix builds for multiple Perl versions
Try to catch regressions for previous supported Perls more easily by testing builds ASAP.
1 parent 9782265 commit b72cb97

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/build-image.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Build and test latest supported Perls
22

3-
env:
4-
VERSION: 5.030.003
5-
63
on: [push, pull_request]
74

85
jobs:
@@ -11,6 +8,7 @@ jobs:
118
strategy:
129
matrix:
1310
variant: [ 'main', 'slim', 'main,threaded', 'slim,threaded' ]
11+
perl-version: [ '5.030.003', '5.028.003' ]
1412
steps:
1513
- uses: actions/checkout@master
1614
- name: Clone docker-library/official-images (for testing)
@@ -19,11 +17,11 @@ jobs:
1917
- name: Build image
2018
run: |
2119
docker version
22-
docker build --no-cache -t perl:$VERSION $VERSION-${{ matrix.variant }}-buster
20+
docker build --no-cache -t perl:${{ matrix.perl-version }} ${{ matrix.perl-version }}-${{ matrix.variant }}-buster
2321
- name: Inspect image creation and tag time
2422
run: |
25-
docker image inspect --format \'{{.Created}}\' perl:$VERSION
26-
docker image inspect --format \'{{.Metadata.LastTagTime}}\' perl:$VERSION
23+
docker image inspect --format \'{{.Created}}\' perl:${{ matrix.perl-version }}
24+
docker image inspect --format \'{{.Metadata.LastTagTime}}\' perl:${{ matrix.perl-version }}
2725
- name: Run tests
2826
run: |
29-
./official-images/test/run.sh perl:$VERSION
27+
./official-images/test/run.sh perl:${{ matrix.perl-version }}

0 commit comments

Comments
 (0)