Skip to content

Commit dbb03c9

Browse files
author
Mirko Brombin
authored
feat: create build workflow
1 parent 6d9e91e commit dbb03c9

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/main.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-22.04
10+
container:
11+
image: ghcr.io/vanilla-os/pico:main
12+
volumes:
13+
- /proc:/proc
14+
- /:/run/host
15+
options: --privileged -it
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: De-bloat stock image
21+
run: |
22+
rm -r /run/host/usr/share/dotnet
23+
rm -r /run/host${{ runner.tool_cache }}
24+
25+
- name: Install needed packages
26+
run: apt update && apt install dpkg-dev build-essential debhelper inkscape librsvg2-bin optipng -y
27+
28+
- name: Build debian package
29+
run: |
30+
dpkg-buildpackage --no-sign
31+
mv ../*.deb ../desktop-base.deb
32+
33+
- uses: softprops/action-gh-release@v1
34+
with:
35+
token: "${{ secrets.GITHUB_TOKEN }}"
36+
tag_name: "continuous"
37+
prerelease: true
38+
name: "Continuous Build"
39+
files: |
40+
/__w/desktop-base/desktop-base.deb

0 commit comments

Comments
 (0)