Skip to content

Build

Build #7

Workflow file for this run

name: Build
on:
pull_request:
workflow_call:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/vanilla-os/pico:main
volumes:
- /proc:/proc
- /:/run/host
options: --privileged -it
steps:
- uses: actions/checkout@v4
- name: Install needed packages
run: |
DEBIAN_FRONTEND=noninteractive apt update
DEBIAN_FRONTEND=noninteractive apt install -y \
dpkg-dev \
build-essential \
debhelper-compat \
devscripts \
wget \
git
apt-get build-dep -y .
- name: Build debian package
id: build-deb
run: |
dpkg-buildpackage -b -rfakeroot -us -uc
echo "DEB_FILE=${{ github.event.repository.name }}_$(dpkg-parsechangelog -S version)_$(dpkg-architecture -qDEB_BUILD_ARCH).deb" >> $GITHUB_OUTPUT
# - name: Calculate and Save Checksums
# run: |
# sha256sum /__w/${{ github.event.repository.name }}/gnome-control-center.tar.xz >> checksums.txt
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: |
/__w/${{ github.event.repository.name }}/${{ steps.build-deb.outputs.DEB_FILE }}
# - uses: softprops/action-gh-release@v2
# if: github.ref == 'refs/heads/main'
# with:
# token: "${{ secrets.GITHUB_TOKEN }}"
# tag_name: "continuous"
# prerelease: true
# name: "Continuous Build"
# files: |
# /__w/gnome-control-center/gnome-control-center.tar.xz
# checksums.txt