ci: fix just installation #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 | |
run: | | |
wget -qO- https://github.com/casey/just/releases/download/1.16.0/just-1.16.0-x86_64-unknown-linux-musl.tar.gz | tar -C /usr/local/bin/ -xzvf - 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: | | |
sudo just build-jetson-image \ | |
jetson-nano \ | |
300 | |
sudo mv jetson.img "jetson-nano-300_$UBUNTU_$BSP.img" | |
sudo lrzip "jetson-nano-300_$UBUNTU_$BSP.img" | |
sudo 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: | | |
sudo just build-jetson-image \ | |
jetson-nano \ | |
200 | |
sudo mv jetson.img "jetson-nano-200_$UBUNTU_$BSP.img" | |
sudo lrzip "jetson-nano-200_$UBUNTU_$BSP.img" | |
sudo 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: | | |
sudo just build-jetson-image \ | |
jetson-nano-2gb | |
sudo mv jetson.img "jetson-nano-2gb_$UBUNTU_$BSP.img" | |
sudo lrzip "jetson-nano-2gb_$UBUNTU_$BSP.img" | |
sudo 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 }} |