From 4e91bc397d6eed23b43b71976b8f1da813ee3025 Mon Sep 17 00:00:00 2001 From: Khosrow Moossavi Date: Sun, 15 Dec 2024 18:51:38 -0500 Subject: [PATCH] feat: enable github action to test build packages --- .github/workflows/test.yml | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5642ce9 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,47 @@ +name: Test Build + +on: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + matrix-builder: + runs-on: ubuntu-24.04 + outputs: + includes: ${{ steps.builder.outputs.includes }} + steps: + - name: Build Matrix + id: builder + uses: regolith-linux/actions/build-matrix@main + with: + name: "${{ github.event.repository.name }}" + ref: "${{ github.base_ref }}" + arch: "amd64" # only test on amd64 on pull requests + stage: "unstable" + + build: + runs-on: ubuntu-24.04 + needs: matrix-builder + container: "ghcr.io/regolith-linux/ci-${{ matrix.distro }}:${{ matrix.codename }}-${{ matrix.arch }}" + strategy: + fail-fast: false + matrix: + include: ${{ fromJSON(needs.matrix-builder.outputs.includes) }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build Package + uses: regolith-linux/actions/build-package@main + with: + name: "${{ github.event.repository.name }}" + distro: "${{ matrix.distro }}" + codename: "${{ matrix.codename }}" + stage: "unstable" + suite: "unstable" + component: "main" + arch: "${{ matrix.arch }}" + gpg-key: "${{ secrets.PACKAGE_PRIVATE_KEY2 }}"