File tree Expand file tree Collapse file tree 2 files changed +63
-7
lines changed Expand file tree Collapse file tree 2 files changed +63
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : Go (PR)
2
+
3
+ on :
4
+ pull_request_target :
5
+ branches : [ "main" ]
6
+ types : [opened, synchronize, reopened]
7
+
8
+ jobs :
9
+
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ container :
13
+ image : ghcr.io/vanilla-os/pico:main
14
+
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+
18
+ - name : Set up Go
19
+ uses : actions/setup-go@v4
20
+ with :
21
+ go-version : 1.19
22
+
23
+ - name : Install build dependencies
24
+ run : |
25
+ apt-get update
26
+ apt-get install -y pkg-config build-essential
27
+
28
+ - name : Build
29
+ run : go build -o vso
30
+
31
+ - name : Compress
32
+ run : tar -czvf vso.tar.gz vso
33
+
34
+ - uses : softprops/action-gh-release@v1
35
+ with :
36
+ token : " ${{ secrets.GITHUB_TOKEN }}"
37
+ tag_name : " continuous"
38
+ prerelease : true
39
+ name : " Continuous Build"
40
+ files : |
41
+ vso.tar.gz
Original file line number Diff line number Diff line change 1
- name : Build
1
+ name : Go
2
2
3
3
on :
4
4
push :
5
5
branches : [ "main" ]
6
- pull_request :
7
- branches : [ "main" ]
8
6
9
7
jobs :
10
8
11
9
build :
12
10
runs-on : ubuntu-latest
11
+ container :
12
+ image : ghcr.io/vanilla-os/pico:main
13
+
13
14
steps :
14
15
- uses : actions/checkout@v3
15
16
18
19
with :
19
20
go-version : 1.19
20
21
21
- - name : Build
22
- run : go build -v ./...
22
+ - name : Install build dependencies
23
+ run : |
24
+ apt-get update
25
+ apt-get install -y pkg-config build-essential
23
26
24
- - name : Test
25
- run : go test -v ./...
27
+ - name : Build
28
+ run : go build -o vso
29
+
30
+ - name : Compress
31
+ run : tar -czvf vso.tar.gz vso
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
+ vso.tar.gz
You can’t perform that action at this time.
0 commit comments