-
-
Notifications
You must be signed in to change notification settings - Fork 39
56 lines (44 loc) · 1.2 KB
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Go
on:
push:
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/vanilla-os/pico:main
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Install build dependencies
run: |
apt-get update
apt-get install -y pkg-config build-essential
- name: Build
run: go build -o apx -ldflags="-X 'main.Version=${{ github.sha }}'"
- name: Check for missing strings
uses: vanilla-os/missing-strings-golang-action@v0.1.0
- name: Compress
run: tar -czvf apx.tar.gz apx
- name: Compress-manpage
run: tar -czvf apx-man.tar.gz man/man1/apx.1
- uses: actions/upload-artifact@v4
with:
name: apx
path: |
apx.tar.gz
apx-man.tar.gz
- uses: softprops/action-gh-release@v2
if: github.repository == 'vanilla-os/apx' && github.ref == 'refs/heads/main'
with:
token: "${{ secrets.GITHUB_TOKEN }}"
tag_name: "continuous"
prerelease: true
name: "Continuous Build"
files: |
apx.tar.gz
apx-man.tar.gz