diff --git a/.github/workflows/deb-build.yml b/.github/workflows/deb-build.yml new file mode 100644 index 00000000..8e4feca9 --- /dev/null +++ b/.github/workflows/deb-build.yml @@ -0,0 +1,40 @@ +name: Build Debian Package + +on: + push: + branches: [ "main" ] + +jobs: + deb-build: + runs-on: ubuntu-22.04 + container: + image: ghcr.io/vanilla-os/pico:main + volumes: + - /proc:/proc + - /:/run/host + options: --privileged -it + + steps: + - uses: actions/checkout@v4 + + - name: De-bloat stock image + run: | + rm -r /run/host/usr/share/dotnet + rm -r /run/host${{ runner.tool_cache }} + + - name: Install needed packages + run: apt update && apt install dpkg-dev build-essential debhelper libbtrfs-dev libdevmapper-dev libgpgme-dev lvm2 dh-golang golang-go gcc pkg-config -y + + - name: Build debian package + run: | + dpkg-buildpackage --no-sign + mv ../*.deb ../albius.deb + + - uses: softprops/action-gh-release@v1 + with: + token: "${{ secrets.GITHUB_TOKEN }}" + tag_name: "continuous" + prerelease: true + name: "Continuous Build" + files: | + /__w/Albius/albius.deb