Setup GitHub Actions for building and publishing package #4
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: Test Pull Request | |
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: Import GPG Key | |
id: gpg | |
uses: regolith-linux/actions/import-gpg@update-manifest | |
with: | |
gpg-key: "${{ secrets.PACKAGE_PRIVATE_KEY2 }}" | |
gpg-email: "[email protected]" | |
- name: Build Package | |
uses: regolith-linux/actions/build-package@update-manifest | |
with: | |
name: "${{ github.event.repository.name }}" | |
distro: "${{ matrix.distro }}" | |
codename: "${{ matrix.codename }}" | |
stage: "unstable" | |
suite: "unstable" | |
component: "main" | |
arch: "${{ matrix.arch }}" | |
gpg-email: "${{ steps.gpg.outputs.gpg-email }}" | |
gpg-name: "${{ steps.gpg.outputs.gpg-name }}" |