feat:[#358] add custom reboot and close commands #146
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: Build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
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: Get the version | |
id: get_version | |
run: echo "{VERSION}={$(cat VERSION)}" >> $GITHUB_OUTPUT | |
- name: Install build dependencies | |
run: | | |
apt install -y debhelper python3 gettext build-essential desktop-file-utils ninja-build meson libadwaita-1-dev make libnm-dev libnma-dev libnma-gtk4-dev | |
- name: Build .deb package | |
run: | | |
dpkg-buildpackage | |
mv ../vanilla-first-setup_*.deb . | |
- name: Calculate and Save Checksums | |
run: | | |
sha256sum vanilla-first-setup_*.deb >> checksums.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: first-setup | |
path: | | |
checksums.txt | |
vanilla-first-setup_*.deb | |
- 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: | | |
checksums.txt | |
vanilla-first-setup_*.deb |