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
  • Loading branch information
eserte committed May 3, 2023
1 parent 0195f80 commit c0cb574
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 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 @@ -70,6 +71,17 @@ jobs:

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 c0cb574

Please sign in to comment.