OS Packages #276
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
# | |
# Daily Test: Test generating OS packages | |
# | |
name: OS Packages | |
on: | |
workflow_dispatch: {} | |
schedule: | |
# Daily At 04:00 | |
- cron: "0 4 * * *" | |
jobs: | |
packaging: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
flavor: [ | |
# TODO: keep this list updated as distros come and go | |
{ distro: ubuntu, version: focal }, | |
{ distro: ubuntu, version: jammy }, | |
{ distro: ubuntu, version: lunar }, | |
{ distro: fedora, version: 37 }, | |
{ distro: fedora, version: 38 }, | |
{ distro: fedora, version: 39 }, | |
] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Fetch Tags | |
run: | | |
git fetch --prune --unshallow --tags | |
- name: Install Dependencies | |
uses: ./.github/actions/build-dependencies | |
- name: "Build Package" | |
run: | | |
export GIT_TAG=${{steps.tagger.outputs.tag}} | |
script --return -c "make -f builder/Makefile.packaging ${{ matrix.flavor.distro }}-bin-${{ matrix.flavor.version }}" | |
find ./dist | grep -Eq "(deb|rpm)" && found=1 | |
if [[ $found -ne 1 ]]; then | |
echo "Could not generate OS package, check errors" | |
exit 1 | |
fi |