Add Radxa Rock 4 (old name Rock Pi 4) #22
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
name: "Run Checks" | |
on: | |
workflow_dispatch: {} | |
pull_request: | |
branches: | |
- main | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
extra-platforms = aarch64-linux | |
- run: | | |
nix fmt . | |
git diff-files --quiet || (git -P diff; echo -e "\nNOT FORMATTED: run 'nix fmt .'"; false) | |
build_packages: | |
needs: fmt | |
strategy: | |
matrix: | |
package: | |
- kernel_linux_6_6_rockchip.kernel | |
- kernel_linux_6_9_pinetab.kernel | |
- uBootRock64 | |
- uBootRockPro64 | |
- uBootPinebookPro | |
- uBootROCPCRK3399 | |
- uBootPineTab2 | |
- uBootQuartz64A | |
- uBootQuartz64B | |
- uBootSoQuartzModelA | |
- uBootSoQuartzCM4IO | |
- uBootSoQuartzBlade | |
- uBootOrangePiCM4 | |
- uBootRadxaRock4 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free disk space | |
run: | | |
df -h | |
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost /usr/local/lib/android $AGENT_TOOLSDIRECTORY | |
sudo docker image prune --all --force | |
df -h | |
- uses: actions/checkout@v3 | |
- run: | | |
DEBIAN_FRONTEND=noninteractive | |
sudo apt-get update -q -y && sudo apt-get install -q -y qemu-system-aarch64 qemu-efi binfmt-support qemu-user-static | |
- uses: cachix/install-nix-action@v20 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
extra-platforms = aarch64-linux | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: nabam-nixos-rockchip | |
- run: | | |
nix build -L -j4 .#${{ matrix.package }} | |
build_example: | |
needs: fmt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free disk space | |
run: | | |
df -h | |
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost /usr/local/lib/android $AGENT_TOOLSDIRECTORY | |
sudo docker image prune --all --force | |
df -h | |
- uses: actions/checkout@v3 | |
- run: | | |
DEBIAN_FRONTEND=noninteractive | |
sudo apt-get update -q -y && sudo apt-get install -q -y qemu-system-aarch64 qemu-efi binfmt-support qemu-user-static | |
- uses: cachix/install-nix-action@v20 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
extra-platforms = aarch64-linux | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: nabam-nixos-rockchip | |
- working-directory: ./example | |
run: | | |
nix build -L -j4 --accept-flake-config --override-input rockchip .. |