-
Notifications
You must be signed in to change notification settings - Fork 19
140 lines (127 loc) · 4.61 KB
/
main.yml
File metadata and controls
140 lines (127 loc) · 4.61 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name: CI
on: [push, pull_request, workflow_dispatch]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: make DEBIAN=trixie update
- run: make DEBIAN=trixie build
- name: Log in to docker
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
- run: make DEBIAN=trixie push
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
build-ds:
name: Build Driver Station
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: make update/ds
- run: make build/ds
- name: Log in to docker
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
- run: make push/ds
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
build-arm-ds:
name: Build Driver Station Arm
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- run: make update/armds
- run: make build/armds
- name: Log in to docker
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
- run: make push/armds
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
build-arm:
name: Build ARM
runs-on: ubuntu-24.04-arm
strategy:
matrix:
debian-version:
- trixie
steps:
- uses: actions/checkout@v4
- run: make DEBIAN=${{ matrix.debian-version }} update/arm
- run: make DEBIAN=${{ matrix.debian-version }} build/arm-base
- name: Log in to docker
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
- run: make DEBIAN=${{ matrix.debian-version }} push/arm-base
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
build-minimal:
name: Build Minimal
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: make DEBIAN=trixie update
- run: make DEBIAN=trixie build/minimal-cross
- name: Log in to docker
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
- run: make DEBIAN=trixie push/minimal-cross
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
- run: make DEBIAN=trixie save/minimal-cross
- name: Upload systemcore cross base image
uses: actions/upload-artifact@v4
with:
name: systemcore-trixie
path: systemcore.tar.zst
retention-days: 1
build-python:
name: Build Python Images
needs: [build-minimal]
runs-on: ubuntu-latest
strategy:
matrix:
type:
- systemcore
pyversion:
- py313
- py314
debian-version:
- trixie
steps:
- uses: actions/checkout@v4
- name: Download image
uses: actions/download-artifact@v4
with:
name: ${{ matrix.type }}-${{ matrix.debian-version }}
path: img
- name: Load image
run: |
unzstd -c img/${{ matrix.type }}.tar.zst | docker load
rm img/${{ matrix.type }}.tar.zst
- name: Build image
run: make DEBIAN=trixie build/cross-${{ matrix.type }}-${{ matrix.pyversion }}
- name: Log in to docker
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}
- name: Upload image
run: make DEBIAN=trixie push/cross-${{ matrix.type }}-${{ matrix.pyversion }}
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }}