-
Notifications
You must be signed in to change notification settings - Fork 35
129 lines (115 loc) · 3.68 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
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
name: sd-card-images CI
on:
push:
branches: "*"
pull_request:
branches:
- "master"
schedule:
# Every Sunday morning
- cron: "00 03 * * 0"
jobs:
test-debian-x86:
runs-on: ubuntu-latest
name: test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.suite }}
strategy:
matrix:
include:
- os: debian
suite: bullseye
arch: i386
- os: debian
suite: bookworm
arch: i386
- os: debian
suite: trixie
arch: i386
- os: debian
suite: sid
arch: i386
fail-fast: false
env:
DEBIAN_OS: ${{ matrix.os }}
DEBIAN_ARCH: ${{ matrix.arch }}
DEBIAN_SUITE: ${{ matrix.suite }}
steps:
- name: Install dependencies
timeout-minutes: 5
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update
sudo apt-get --assume-yes \
--no-install-recommends \
install bc \
bison \
bzip2 \
ca-certificates \
debian-archive-keyring \
debootstrap \
device-tree-compiler \
dosfstools \
e2fsprogs \
flex \
gcc \
gcc-arm-none-eabi \
gcc-i686-linux-gnu \
git \
libssl-dev \
make \
mtools \
parted \
pigz \
pwgen \
python2-dev \
python3-dev \
python3-pkg-resources \
ssh \
sshpass \
swig \
qemu-system-x86
- name: Checkout
uses: actions/checkout@v4
- name: Build qemu_x86_virt
timeout-minutes: 5
run: |
env PATH=$GITHUB_WORKSPACE/scripts:$PATH \
ARTIFACTS_DIR=$RUNNER_TEMP \
U_BOOT_GIT_REV="v2023.07" \
U_BOOT_GIT_URL="https://github.com/u-boot/u-boot.git" \
build-boot qemu_x86_virt \
qemu-x86 \
qemu-x86_defconfig \
i686-linux-gnu
- name: Build ${{ matrix.suite }} ${{ matrix.arch }}
timeout-minutes: 5
run: |
sudo env PATH=$GITHUB_WORKSPACE/scripts:$PATH \
ARTIFACTS_DIR=$RUNNER_TEMP \
build-debian $DEBIAN_OS \
$DEBIAN_ARCH \
$DEBIAN_SUITE
- name: Test qemu_x86_virt + ${{ matrix.suite }} ${{ matrix.arch }}
timeout-minutes: 15
run: |
sudo ./test/qemu.sh $RUNNER_TEMP/boot-qemu_x86_virt.bin.gz \
$RUNNER_TEMP/${{ matrix.os }}-${{ matrix.suite }}-${{ matrix.arch }}-*.bin.gz
build-docker:
runs-on: ubuntu-latest
needs: test-debian-x86
name: build docker images
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
timeout-minutes: 1
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
timeout-minutes: 1
uses: docker/setup-buildx-action@v2
- name: Build
timeout-minutes: 30
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64