Skip to content

Commit c862901

Browse files
authored
Merge pull request #268 from rtibbles/buster_archive_fix
Fix github actions runner failures due to debian buster packages only being available on archive.
2 parents f052787 + 74b48b8 commit c862901

4 files changed

Lines changed: 15 additions & 4 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tests/SQLite-89e099fb.tar.gz filter=lfs diff=lfs merge=lfs -text

.github/workflows/check_migrations_sqlite.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,23 @@ jobs:
2020
container:
2121
image: python:3.7-buster
2222
steps:
23-
- uses: actions/checkout@v4
2423
- name: Install build dependencies
2524
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
2625
run: |
26+
echo "deb http://archive.debian.org/debian-archive/debian/ buster main" > /etc/apt/sources.list
27+
echo "deb http://archive.debian.org/debian-archive/debian-security/ buster/updates main" >> /etc/apt/sources.list
28+
echo "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf.d/99archive
2729
apt-get -y -qq update
28-
apt-get install -y build-essential tcl
30+
apt-get install -y build-essential tcl git-lfs
31+
- uses: actions/checkout@v4
32+
with:
33+
lfs: true
2934
- name: Build SQLite 3.25.3
3035
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
3136
run: |
3237
# Following the instructions from https://til.simonwillison.net/sqlite/ld-preload
3338
# to build SQLite from source, using version 3.25.3
34-
wget https://www.sqlite.org/src/tarball/89e099fb/SQLite-89e099fb.tar.gz
35-
tar -xzvf SQLite-89e099fb.tar.gz
39+
tar -xzvf tests/SQLite-89e099fb.tar.gz
3640
cd SQLite-89e099fb
3741
CPPFLAGS="-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_RTREE=1" ./configure
3842
make

.github/workflows/tox.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ jobs:
121121
- name: Install system dependencies
122122
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
123123
run: |
124+
echo "deb http://archive.debian.org/debian-archive/debian/ buster main" > /etc/apt/sources.list
125+
echo "deb http://archive.debian.org/debian-archive/debian-security/ buster/updates main" >> /etc/apt/sources.list
126+
echo "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf.d/99archive
124127
apt-get -y -qq update
125128
apt-get install -y openssl libssl-dev
126129
- name: Install tox

tests/SQLite-89e099fb.tar.gz

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:645b0ae19827ad5aeba6a324f110b7a54a2d1c4a083d231f24618a2a64a201df
3+
size 10004433

0 commit comments

Comments
 (0)