From aa4a536f8c50d822721ca0ccddfceae4f43bb6d2 Mon Sep 17 00:00:00 2001 From: Stefan Date: Thu, 18 May 2023 16:19:49 +0200 Subject: [PATCH] Added Gitea Actions --- .gitea/workflows/test.yml | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..53d6ed4 --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,42 @@ +name: Build Gluon +on: + push: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + changed: + runs-on: ubuntu-latest + outputs: + targets: ath79-generic + + build_firmware: + needs: changed + strategy: + fail-fast: false + matrix: + # Read back changd targets to create build matrix + target: ath79-generic + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + submodules: true + + - name: Install Dependencies + run: sudo gluon/contrib/actions/install-dependencies.sh + + - name: Build + run: gluon/contrib/actions/run-build.sh ${{ matrix.target }} + + - name: Archive build logs + if: ${{ !cancelled() }} + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.target }}_logs + path: openwrt/logs + + - name: Archive build output + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.target }}_output + path: output