-
-
Notifications
You must be signed in to change notification settings - Fork 107
138 lines (124 loc) · 5.06 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
---
on:
push:
tags:
- "*"
name: Build
env:
L4T32_BSP: 32.7.4
L4T35_BSP: 35.4.1
UBUNTU: 20.04
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
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 lrzip
sudo systemctl start systemd-binfmt.service
- name: Create rootfs
run: just build-jetson-rootfs
- name: Build jetson image for Jetson nano revision 300
run: |
just build-jetson-image \
-b jetson-nano \
-r 300
mv jetson.img "jetson-nano-300_${UBUNTU}_${L4T32_BSP}.img"
lrzip "jetson-nano-300_${UBUNTU}_${L4T32_BSP}.img"
rm -rf "jetson-nano-300_${UBUNTU}_${L4T32_BSP}.img"
ls -lht "jetson-nano-300_${UBUNTU}_${L4T32_BSP}.img.lrz"
- name: Build jetson image for Jetson nano revision 200
run: |
just build-jetson-image \
-b jetson-nano \
-r 200
mv jetson.img "jetson-nano-200_${UBUNTU}_${L4T32_BSP}.img"
lrzip "jetson-nano-200_${UBUNTU}_${L4T32_BSP}.img"
rm -rf "jetson-nano-200_${UBUNTU}_${L4T32_BSP}.img"
ls -lht "jetson-nano-200_${UBUNTU}_${L4T32_BSP}.img.lrz"
- name: Build jetson image for Jetson nano revision 100
run: |
just build-jetson-image \
-b jetson-nano \
-r 100
mv jetson.img "jetson-nano-100_${UBUNTU}_${L4T32_BSP}.img"
lrzip "jetson-nano-100_${UBUNTU}_${L4T32_BSP}.img"
rm -rf "jetson-nano-100_${UBUNTU}_${L4T32_BSP}.img"
ls -lht "jetson-nano-100_${UBUNTU}_${L4T32_BSP}.img.lrz"
- name: Build jetson image for Jetson nano 2G
run: |
just build-jetson-image \
-b jetson-nano-2gb
mv jetson.img "jetson-nano-2gb_${UBUNTU}_${L4T32_BSP}.img"
lrzip "jetson-nano-2gb_${UBUNTU}_${L4T32_BSP}.img"
rm -rf "jetson-nano-2gb_${UBUNTU}_${L4T32_BSP}.img"
ls -lht "jetson-nano-2gb_${UBUNTU}_${L4T32_BSP}.img.lrz"
- name: Build jetson image for jetson orin nano SD
run: |
just build-jetson-image \
-b jetson-orin-nano \
-d SD
mv jetson.img "jetson-orin-nano_${UBUNTU}_${L4T35_BSP}_SD.img"
lrzip "jetson-orin-nano_${UBUNTU}_${L4T35_BSP}_SD.img"
rm -rf "jetson-orin-nano_${UBUNTU}_${L4T35_BSP}_SD.img"
ls -lht "jetson-orin-nano_${UBUNTU}_${L4T35_BSP}_SD.img.lrz"
- name: Build jetson image for jetson orin nano USB
run: |
just build-jetson-image \
-b jetson-orin-nano \
-d USB
mv jetson.img "jetson-orin-nano_${UBUNTU}_${L4T35_BSP}_USB.img"
lrzip "jetson-orin-nano_${UBUNTU}_${L4T35_BSP}_USB.img"
rm -rf "jetson-orin-nano_${UBUNTU}_${L4T35_BSP}_USB.img"
ls -lht "jetson-orin-nano_${UBUNTU}_${L4T35_BSP}_USB.img.lrz"
- name: Build jetson image for jetson agx xavier SD
run: |
just build-jetson-image \
-b jetson-agx-xavier \
-d SD
mv jetson.img "jetson-agx-xavier_${UBUNTU}_${L4T35_BSP}_SD.img"
lrzip "jetson-agx-xavier_${UBUNTU}_${L4T35_BSP}_SD.img"
rm -rf "jetson-agx-xavier_${UBUNTU}_${L4T35_BSP}_SD.img"
ls -lht "jetson-agx-xavier_${UBUNTU}_${L4T35_BSP}_SD.img.lrz"
- name: Build jetson image for jetson agx xavier USB
run: |
just build-jetson-image \
-b jetson-agx-xavier \
-d USB
mv jetson.img "jetson-agx-xavier_${UBUNTU}_${L4T35_BSP}_USB.img"
lrzip "jetson-agx-xavier_${UBUNTU}_${L4T35_BSP}_USB.img"
rm -rf "jetson-agx-xavier_${UBUNTU}_${L4T35_BSP}_USB.img"
ls -lht "jetson-agx-xavier_${UBUNTU}_${L4T35_BSP}_USB.img.lrz"
- name: Build jetson image for jetson xavier nx SD
run: |
just build-jetson-image \
-b jetson-xavier-nx \
-d SD
mv jetson.img "jetson-xavier-nx_${UBUNTU}_${L4T35_BSP}_SD.img"
lrzip "jetson-xavier-nx_${UBUNTU}_${L4T35_BSP}_SD.img"
rm -rf "jetson-xavier-nx_${UBUNTU}_${L4T35_BSP}_SD.img"
ls -lht "jetson-xavier-nx_${UBUNTU}_${L4T35_BSP}_SD.img.lrz"
- name: Build jetson image for jetson xavier nx USB
run: |
just build-jetson-image \
-b jetson-xavier-nx \
-d USB
mv jetson.img "jetson-xavier-nx_${UBUNTU}_${L4T35_BSP}_USB.img"
lrzip "jetson-xavier-nx_${UBUNTU}_${L4T35_BSP}_USB.img"
rm -rf "jetson-xavier-nx_${UBUNTU}_${L4T35_BSP}_USB.img"
ls -lht "jetson-xavier-nx_${UBUNTU}_${L4T35_BSP}_USB.img.lrz"
- name: Release
uses: softprops/action-gh-release@v1
with:
body: |
[CHANGELOG.md](${{ github.server_url }}/${{ github.repository }}/blob/master/CHANGELOG.md)
files: "jetson*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}