Skip to content

Commit 881339d

Browse files
committed
github workflow: switch to taiki-e/checkout-action@v1 + add more test configs
1 parent 444184e commit 881339d

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ jobs:
1919
include:
2020
- os: 'ubuntu-20.04'
2121
- os: 'ubuntu-22.04'
22+
- os: 'ubuntu-24.04'
2223
- os: 'windows-latest'
2324
steps:
24-
- uses: actions/checkout@v3
25+
- uses: taiki-e/checkout-action@v1
2526

2627
- name: "Build and test (ubuntu)"
2728
run: |
@@ -51,8 +52,20 @@ jobs:
5152
- perlimage: 5.18.4-buster
5253
- perlimage: 5.22.4-stretch
5354
- perlimage: 5.36.0-slim-bullseye
55+
- perlimage: 5.40.0-slim-bookworm
5456
steps:
55-
- uses: actions/checkout@v3
57+
- name: apt hacks
58+
run: |
59+
set -e
60+
CODENAME=$(perl -nle '/^VERSION_CODENAME="?([^"]+)/ and $codename=$1; /^VERSION="\d+ \((.*)\)/ and $maybe_codename=$1; END { print $codename || $maybe_codename }' /etc/os-release)
61+
case "$CODENAME" in
62+
wheezy|jessie|stretch)
63+
echo "APT::Get::AllowUnauthenticated 1;" > /etc/apt/apt.conf.d/02allow-unsigned
64+
echo "deb [check-valid-until=no] http://archive.debian.org/debian $CODENAME main" > /etc/apt/sources.list
65+
echo "deb [check-valid-until=no] http://archive.debian.org/debian-security/ $CODENAME/updates main" >> /etc/apt/sources.list
66+
;;
67+
esac
68+
- uses: taiki-e/checkout-action@v1
5669
- name: Build and test
5770
run: |
5871
set -e

0 commit comments

Comments
 (0)