-
-
Notifications
You must be signed in to change notification settings - Fork 107
156 lines (141 loc) · 5.49 KB
/
ci.yaml
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
---
on:
push:
tags:
- "*"
name: Build
env:
L4T32_BSP: 32.7.4
L4T35_BSP: 35.5.0
L4T36_BSP: 36.3.0
jobs:
build:
strategy:
matrix:
ubuntu: ["22.04", "24.04"]
permissions:
contents: write
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install just
uses: taiki-e/install-action@just
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y podman qemu-user-static pigz
sudo systemctl start systemd-binfmt.service
- name: Free Disk Space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: false
swap-storage: true
- name: Create rootfs
run: just build-jetson-rootfs ${{ matrix.ubuntu }}
- name: Build jetson image for Jetson nano revision 300
if: matrix.ubuntu == '22.04'
run: |
just build-jetson-image \
-b jetson-nano \
-r 300
mv jetson.img "jetson-nano-300_${{ matrix.ubuntu }}_${L4T32_BSP}.img"
pigz "jetson-nano-300_${{ matrix.ubuntu }}_${L4T32_BSP}.img"
ls -lht "jetson-nano-300_${{ matrix.ubuntu }}_${L4T32_BSP}.img.gz"
- name: Build jetson image for Jetson nano revision 200
if: matrix.ubuntu == '22.04'
run: |
just build-jetson-image \
-b jetson-nano \
-r 200
mv jetson.img "jetson-nano-200_${{ matrix.ubuntu }}_${L4T32_BSP}.img"
pigz "jetson-nano-200_${{ matrix.ubuntu }}_${L4T32_BSP}.img"
ls -lht "jetson-nano-200_${{ matrix.ubuntu }}_${L4T32_BSP}.img.gz"
- name: Build jetson image for Jetson nano revision 100
if: matrix.ubuntu == '22.04'
run: |
just build-jetson-image \
-b jetson-nano \
-r 100
mv jetson.img "jetson-nano-100_${{ matrix.ubuntu }}_${L4T32_BSP}.img"
pigz "jetson-nano-100_${{ matrix.ubuntu }}_${L4T32_BSP}.img"
ls -lht "jetson-nano-100_${{ matrix.ubuntu }}_${L4T32_BSP}.img.gz"
- name: Build jetson image for Jetson nano 2G
if: matrix.ubuntu == '22.04'
run: |
just build-jetson-image \
-b jetson-nano-2gb
mv jetson.img "jetson-nano-2gb_${{ matrix.ubuntu }}_${L4T32_BSP}.img"
pigz "jetson-nano-2gb_${{ matrix.ubuntu }}_${L4T32_BSP}.img"
ls -lht "jetson-nano-2gb_${{ matrix.ubuntu }}_${L4T32_BSP}.img.gz"
- name: Build jetson image for jetson orin nano SD
if: matrix.ubuntu == '24.04'
run: |
just build-jetson-image \
-b jetson-orin-nano \
-d SD \
-l 36
mv jetson.img "jetson-orin-nano_${{ matrix.ubuntu }}_${L4T36_BSP}_SD.img"
pigz "jetson-orin-nano_${{ matrix.ubuntu }}_${L4T36_BSP}_SD.img"
ls -lht "jetson-orin-nano_${{ matrix.ubuntu }}_${L4T36_BSP}_SD.img.gz"
- name: Build jetson image for jetson orin nano USB
if: matrix.ubuntu == '24.04'
run: |
just build-jetson-image \
-b jetson-orin-nano \
-d USB \
-l 36
mv jetson.img "jetson-orin-nano_${{ matrix.ubuntu }}_${L4T36_BSP}_USB.img"
pigz "jetson-orin-nano_${{ matrix.ubuntu }}_${L4T36_BSP}_USB.img"
ls -lht "jetson-orin-nano_${{ matrix.ubuntu }}_${L4T36_BSP}_USB.img.gz"
- name: Build jetson image for jetson agx xavier SD
if: matrix.ubuntu == '22.04'
run: |
just build-jetson-image \
-b jetson-agx-xavier \
-d SD \
-l 35
mv jetson.img "jetson-agx-xavier_${{ matrix.ubuntu }}_${L4T35_BSP}_SD.img"
pigz "jetson-agx-xavier_${{ matrix.ubuntu }}_${L4T35_BSP}_SD.img"
ls -lht "jetson-agx-xavier_${{ matrix.ubuntu }}_${L4T35_BSP}_SD.img.gz"
- name: Build jetson image for jetson agx xavier USB
if: matrix.ubuntu == '22.04'
run: |
just build-jetson-image \
-b jetson-agx-xavier \
-d USB \
-l 35
mv jetson.img "jetson-agx-xavier_${{ matrix.ubuntu }}_${L4T35_BSP}_USB.img"
pigz "jetson-agx-xavier_${{ matrix.ubuntu }}_${L4T35_BSP}_USB.img"
ls -lht "jetson-agx-xavier_${{ matrix.ubuntu }}_${L4T35_BSP}_USB.img.gz"
- name: Build jetson image for jetson xavier nx SD
if: matrix.ubuntu == '22.04'
run: |
just build-jetson-image \
-b jetson-xavier-nx \
-d SD \
-l 35
mv jetson.img "jetson-xavier-nx_${{ matrix.ubuntu }}_${L4T35_BSP}_SD.img"
pigz "jetson-xavier-nx_${{ matrix.ubuntu }}_${L4T35_BSP}_SD.img"
ls -lht "jetson-xavier-nx_${{ matrix.ubuntu }}_${L4T35_BSP}_SD.img.gz"
- name: Build jetson image for jetson xavier nx USB
if: matrix.ubuntu == '22.04'
run: |
just build-jetson-image \
-b jetson-xavier-nx \
-d USB \
-l 35
mv jetson.img "jetson-xavier-nx_${{ matrix.ubuntu }}_${L4T35_BSP}_USB.img"
pigz "jetson-xavier-nx_${{ matrix.ubuntu }}_${L4T35_BSP}_USB.img"
ls -lht "jetson-xavier-nx_${{ matrix.ubuntu }}_${L4T35_BSP}_USB.img.gz"
- name: Release
uses: softprops/action-gh-release@v2
with:
body: |
[CHANGELOG.md](${{ github.server_url }}/${{ github.repository }}/blob/master/CHANGELOG.md)
files: "jetson*"