You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
settings/.github/workflows/build.yml

65 lines
1.4 KiB
YAML

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
debian:
name: Debian
runs-on: ubuntu-latest
container: docker.io/library/debian:sid
steps:
- name: Prepare checkout
run: |
apt-get update
apt-get install -y git ca-certificates
- name: Checkout settings
uses: actions/checkout@v4
with:
path: settings
- name: Checkout Cutefish Framework
uses: actions/checkout@v4
with:
repository: cutefishos/cutefish-framework
ref: main
path: cutefish-framework
- name: Install the basic dev packages
run: |
apt-get install -y \
equivs \
curl \
devscripts \
lintian \
build-essential \
automake \
autotools-dev \
cmake \
g++
- name: Checkout packaging
uses: actions/checkout@v4
with:
repository: cutefishos/packaging
ref: main
path: packaging
- name: Add the Debian packaging
run: |
mv packaging/debian/settings/debian settings/
rm -rf packaging
- name: Install build dependencies
working-directory: settings
run: mk-build-deps -i -t "apt-get --yes" -r
- name: Build Package
working-directory: settings
run: dpkg-buildpackage -b -uc -us -j$(nproc)