1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Rust
on:
push:
branches:
pull_request:
branches:
env:
CARGO_TERM_COLOR: always
jobs:
build:
# the inefficiency here is outrageous; don't copy this into other projects;
# it's only vaguely acceptable here because this project is low volume
strategy:
matrix:
buildpack:
- bionic # 2018; apt 1.6
- buster # 2019; apt 1.8
- focal # 2020; apt 2.0
- bullseye # 2021; apt 2.2
- jammy # 2022; apt 2.4
- bookworm # 2023; apt 2.6
- noble # 2024; apt 2.7
- trixie # 2025ish; 3.0-ish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test under ${{ matrix.buildpack }}
run: |
docker build -t img \
--build-arg BASE_VERSION=${{ matrix.buildpack }} \
--file ci.Dockerfile .
docker run --rm img cargo test --verbose