Skip to content

Commit

Permalink
feat: add deb-build action
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin authored Nov 20, 2023
1 parent 9fdeb69 commit fd93182
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,37 @@ jobs:
- name: Test
run: |
distrobox enter -r albius_test -- sudo go test -v ./...
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/vanilla-installer/albius.deb

0 comments on commit fd93182

Please sign in to comment.