From 240e2cc1073707b9d6db998243a53efaa694877d Mon Sep 17 00:00:00 2001 From: Yurii Smetanka Date: Mon, 21 Oct 2024 02:17:54 +0200 Subject: [PATCH] build armbian --- .github/workflows/build-armbian.yml | 44 +++++++++++++++++++++++++++++ .github/workflows/publish.yml | 2 +- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build-armbian.yml diff --git a/.github/workflows/build-armbian.yml b/.github/workflows/build-armbian.yml new file mode 100644 index 00000000..5b51be22 --- /dev/null +++ b/.github/workflows/build-armbian.yml @@ -0,0 +1,44 @@ +name: "build armbian" + +on: + workflow_dispatch: + inputs: + armbian_kernel_branch: + type: choice + description: 'Kernel branch' + options: + - legacy + - current + - edge + default: 'current' + + armbian_ui: + type: choice + description: 'User interface (not all works)' + options: + - minimal + - server + - xfce + - gnome + - cinnamon + - i3-wm + - kde-plasma + default: 'server' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + path: publish/build + + - uses: armbian/build@v24.11.0-trunk.303 + with: + armbian_token: "${{ secrets.REPO_KEY }}" + armbian_target: "build" + armbian_release: "bookworm" + armbian_kernel_branch: "${{inputs.armbian_kernel_branch}}" + armbian_ui: "${{inputs.armbian_ui}}" + armbian_board: "bananapim4zero" + armbian_version: "v24.11.0-trunk.303" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6d53edfb..fc261a03 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,7 +33,7 @@ jobs: - name: Build ${{ matrix.name }} img file run: cd publish/build; ls -la .; pwd; make packer; make ${{ matrix.id }} - + - name: Change name of .img.xz to add version run: | sudo chown runner:docker "pwnagotchi-${{ matrix.id }}.img"