Skip to content

Commit

Permalink
github actions: use archive.debian.org for old debian versions
Browse files Browse the repository at this point in the history
Additionally add workflow_dispatch
  • Loading branch information
eserte committed Jun 6, 2023
1 parent f3d813d commit f9d4360
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- '*appveyor*'
- '*doozer*'
pull_request:
workflow_dispatch:

jobs:
test:
Expand Down Expand Up @@ -66,9 +67,21 @@ jobs:
- perlimage: 5.16.3-buster
- perlimage: 5.18.4-buster
- perlimage: 5.22.4-stretch
- perlimage: 5.36.0-bullseye

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
- name: "build and test"
run: |
apt-get update -qq && apt-get install -qq --no-install-recommends cpanminus xvfb libx11-dev libfreetype6-dev libxft-dev libpng-dev libz-dev libjpeg-dev twm
Expand Down

0 comments on commit f9d4360

Please sign in to comment.