From d1f734e1f69c785fd7e11925c16bcbc1940d377e Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 19 Dec 2023 19:43:04 -0500 Subject: [PATCH] Build for LL too --- .github/workflows/main.yml | 39 +++++++++++++++----------------------- install_limelight.sh | 11 +++++++++++ 2 files changed, 26 insertions(+), 24 deletions(-) create mode 100755 install_limelight.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4f31aaf..6aff1d9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,8 +10,19 @@ on: jobs: build: runs-on: ubuntu-latest - steps: + strategy: + fail-fast: false + matrix: + include: + - name: limelight + script: ./install_limelight.sh + - name: raspi + script: ./install_pi.sh + + name: "Build for ${{ matrix.name }}" + + steps: - uses: actions/checkout@v3 with: fetch-depth: 0 @@ -32,36 +43,16 @@ jobs: optimize_image: no image_additional_mb: 1500 base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2023-12-11/2023-12-11-raspios-bookworm-arm64-lite.img.xz - commands: | - ./install_pi.sh + commands: ${{ matrix.script }} - name: Move and rename image with dependencies if: steps.cache.outputs.cache-hit != 'true' run: | - export IMAGE=photonvision_$(git describe --tags --match=v*).img + export IMAGE=photonvision_$(git describe --tags --match=v*)_${{ matrix.name }}.img mv ${{ steps.install_deps.outputs.image }} $RUNNER_TEMP/$IMAGE tar -cJf $IMAGE.tar.xz $RUNNER_TEMP/$IMAGE - uses: actions/upload-artifact@master with: - name: photon-image + name: photon-image-${{ matrix.name }} path: "*.tar.xz" - - # Push to dev release on pushes to master - - uses: pyTooling/Actions/releaser@r0 - with: - token: ${{ secrets.GITHUB_TOKEN }} - tag: 'Dev' - rm: true - files: | - *.tar.xz - if: github.event_name == 'push' - - # Push to actual release, if tagged - - uses: softprops/action-gh-release@v1 - with: - files: | - *.tar.xz - if: startsWith(github.ref, 'refs/tags/v') - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/install_limelight.sh b/install_limelight.sh new file mode 100755 index 0000000..9e83c8e --- /dev/null +++ b/install_limelight.sh @@ -0,0 +1,11 @@ +# Run normal photon instarller + +cd /tmp +wget https://git.io/JJrEP -O install.sh +chmod +x install.sh +sudo ./install.sh + +# and edit boot partition + +find /boot/ +cat /boot/config.txt