-
Notifications
You must be signed in to change notification settings - Fork 2
82 lines (72 loc) · 2.11 KB
/
ci.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: CI
on: [push, pull_request]
jobs:
vanilla:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- tiny5.15
- tiny6.6
outputs:
artifact_id: ${{ steps.upload.outputs.artifact-id }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y make build-essential
- name: Build tiny kernel
run: make ${{ matrix.target }}
- uses: actions/upload-artifact@v4
id: upload
with:
name: build1
path: build
if-no-files-found: error
vanilla2:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- tiny5.15
- tiny6.6
outputs:
artifact_id: ${{ steps.upload.outputs.artifact-id }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y make build-essential
- name: Build vanilla kernel
run: make ${{ matrix.target }}
- uses: actions/upload-artifact@v4
id: upload
with:
name: build2
path: build
if-no-files-found: error
reproducible:
runs-on: ubuntu-latest
container: debian:bookworm
needs:
- vanilla
- vanilla2
steps:
- name: Install dependencies
run: |
apt-get update && apt-get install --yes diffoscope-minimal python3-debian \
--no-install-recommends
- uses: actions/download-artifact@v4
with:
pattern: "*"
- name: diffoscope
run: |
find . -name '*.deb' -exec sha256sum {} \;
# TODO: Ideally we'd just be able to diff the .changes files and let diffoscope find
# all the individual debs, but the source packages are not identical. When they are,
for deb in `find build1/ -name '*.deb' -exec basename {} \;`; do
echo "Diffoscoping $deb"
diffoscope build1/$deb build2/$deb
done;