Skip to content

Commit

Permalink
github workflow: switch to taiki-e/checkout-action@v1 + add more test…
Browse files Browse the repository at this point in the history
… configs
  • Loading branch information
eserte committed Jul 12, 2024
1 parent 444184e commit 881339d
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ jobs:
include:
- os: 'ubuntu-20.04'
- os: 'ubuntu-22.04'
- os: 'ubuntu-24.04'
- os: 'windows-latest'
steps:
- uses: actions/checkout@v3
- uses: taiki-e/checkout-action@v1

- name: "Build and test (ubuntu)"
run: |
Expand Down Expand Up @@ -51,8 +52,20 @@ jobs:
- perlimage: 5.18.4-buster
- perlimage: 5.22.4-stretch
- perlimage: 5.36.0-slim-bullseye
- perlimage: 5.40.0-slim-bookworm
steps:
- uses: actions/checkout@v3
- name: apt hacks
run: |
set -e
CODENAME=$(perl -nle '/^VERSION_CODENAME="?([^"]+)/ and $codename=$1; /^VERSION="\d+ \((.*)\)/ and $maybe_codename=$1; END { print $codename || $maybe_codename }' /etc/os-release)
case "$CODENAME" in
wheezy|jessie|stretch)
echo "APT::Get::AllowUnauthenticated 1;" > /etc/apt/apt.conf.d/02allow-unsigned
echo "deb [check-valid-until=no] http://archive.debian.org/debian $CODENAME main" > /etc/apt/sources.list
echo "deb [check-valid-until=no] http://archive.debian.org/debian-security/ $CODENAME/updates main" >> /etc/apt/sources.list
;;
esac
- uses: taiki-e/checkout-action@v1
- name: Build and test
run: |
set -e
Expand Down

0 comments on commit 881339d

Please sign in to comment.