mirror of
https://github.com/wimpysworld/stream-sprout
synced 2026-03-14 14:45:50 +01:00
feat: add debian packaging
This commit is contained in:
parent
8fd84dd2b7
commit
c8bed71c4a
9 changed files with 145 additions and 2 deletions
59
.github/workflows/test-build-stream-sprout.yml
vendored
Normal file
59
.github/workflows/test-build-stream-sprout.yml
vendored
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
name: Test build stream-sprout 🚧
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- stream-sprout
|
||||
- debian/**
|
||||
- flake.nix
|
||||
- package.nix
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- stream-sprout
|
||||
- debian/**
|
||||
- flake.nix
|
||||
- package.nix
|
||||
workflow_dispatch:
|
||||
|
||||
# TODO: arm64 runner
|
||||
# https://github.blog/changelog/2024-06-03-actions-arm-based-linux-and-windows-runners-are-now-in-public-beta/
|
||||
|
||||
jobs:
|
||||
test-deb-build:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: "Checkout 🥡"
|
||||
uses: actions/checkout@v4
|
||||
- name: "Build & Test .deb 🍥"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
sudo apt-get -y update
|
||||
sudo apt-get -y install debhelper devscripts
|
||||
REL_VER=$(grep "^readonly VERSION" stream-sprout | cut -d'"' -f2)
|
||||
rm debian/changelog
|
||||
dch --package stream-sprout --newversion="${REL_VER}-1" --distribution=unstable "New upstream release." --create
|
||||
dpkg-buildpackage --build=binary --no-check-builddeps --compression=gzip
|
||||
sudo apt-get -y install ../stream-sprout_${REL_VER}-1_all.deb
|
||||
|
||||
test-nix-build:
|
||||
runs-on: ubuntu-24.04
|
||||
permissions:
|
||||
id-token: "write"
|
||||
contents: "read"
|
||||
steps:
|
||||
- name: "Checkout 🥡"
|
||||
uses: "actions/checkout@v4"
|
||||
- name: "Install Nix ❄️"
|
||||
uses: "DeterminateSystems/nix-installer-action@v12"
|
||||
- name: "Enable Magic Nix Cache 🪄"
|
||||
uses: "DeterminateSystems/magic-nix-cache-action@v7"
|
||||
- name: "Build & Test .nix ❄️"
|
||||
run: |
|
||||
nix build .#stream-sprout
|
||||
tree ./result
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue