Skip to content

fix image build

fix image build #22

Workflow file for this run

---
on:
push:
tags:
- "*"
name: Build
env:
BSP: 32.7.4
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 \
jetson-nano \
300
mv jetson.img "jetson-nano-300_$UBUNTU_$BSP.img"
lrzip "jetson-nano-300_$UBUNTU_$BSP.img"
rm -rf "jetson-nano-300_$UBUNTU_$BSP.img"
ls -lht "jetson-nano-300_$UBUNTU_$BSP.img.lrz"
- name: Build jetson image for Jetson nano revision 200
run: |
just build-jetson-image \
jetson-nano \
200
mv jetson.img "jetson-nano-200_$UBUNTU_$BSP.img"
lrzip "jetson-nano-200_$UBUNTU_$BSP.img"
rm -rf "jetson-nano-200_$UBUNTU_$BSP.img"
ls -lht "jetson-nano-200_$UBUNTU_$BSP.img.lrz"
- name: Build jetson image for Jetson nano 2G
run: |
just build-jetson-image \
jetson-nano-2gb
mv jetson.img "jetson-nano-2gb_$UBUNTU_$BSP.img"
lrzip "jetson-nano-2gb_$UBUNTU_$BSP.img"
rm -rf "jetson-nano-2gb_$UBUNTU_$BSP.img"
ls -lht "jetson-nano-2gb_$UBUNTU_$BSP.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 }}