@@ -3,66 +3,70 @@ name: Build and release
3
3
on :
4
4
push :
5
5
tags :
6
- - ' * '
6
+ - " * "
7
7
8
8
jobs :
9
9
releases-matrix :
10
10
name : Release Go Binary
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v2
14
- - run : echo $(go env GOPATH)/bin >> $GITHUB_PATH
13
+ - uses : actions/checkout@v4
14
+ - uses : actions/setup-go@v5
15
+ with :
16
+ go-version : " 1.22"
17
+ cache : true
18
+ - run : echo $(go env GOPATH)/bin >> $GITHUB_PATH
15
19
16
- - name : Build collector
17
- run : UPX_COMPRESS=1 make collector
18
- - name : Build Windows binary
19
- run : make windows
20
- - name : Build Linux binary
21
- run : make linux
22
- - name : Build Darwin binary
23
- run : make darwin
20
+ - name : Build collector
21
+ run : UPX_COMPRESS=1 make collector
22
+ - name : Build Windows binary
23
+ run : make windows
24
+ - name : Build Linux binary
25
+ run : make linux
26
+ - name : Build Darwin binary
27
+ run : make darwin
24
28
25
- - name : Upload Windows binary
26
- uses : svenstaro/upload-release-action@v2
27
- with :
28
- repo_token : ${{ secrets.GITHUB_TOKEN }}
29
- file : build/androidqf_windows_amd64.exe
30
- asset_name : androidqf_$tag_windows_amd64.exe
31
- tag : ${{ github.ref }}
32
- overwrite : true
29
+ - name : Upload Windows binary
30
+ uses : svenstaro/upload-release-action@v2
31
+ with :
32
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
33
+ file : build/androidqf_windows_amd64.exe
34
+ asset_name : androidqf_$tag_windows_amd64.exe
35
+ tag : ${{ github.ref }}
36
+ overwrite : true
33
37
34
- - name : Upload Linux binary
35
- uses : svenstaro/upload-release-action@v2
36
- with :
37
- repo_token : ${{ secrets.GITHUB_TOKEN }}
38
- file : build/androidqf_linux_amd64
39
- asset_name : androidqf_$tag_linux_amd64
40
- tag : ${{ github.ref }}
41
- overwrite : true
38
+ - name : Upload Linux binary
39
+ uses : svenstaro/upload-release-action@v2
40
+ with :
41
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
42
+ file : build/androidqf_linux_amd64
43
+ asset_name : androidqf_$tag_linux_amd64
44
+ tag : ${{ github.ref }}
45
+ overwrite : true
42
46
43
- - name : Upload Linux arm64 binary
44
- uses : svenstaro/upload-release-action@v2
45
- with :
46
- repo_token : ${{ secrets.GITHUB_TOKEN }}
47
- file : build/androidqf_linux_arm64
48
- asset_name : androidqf_$tag_linux_arm64
49
- tag : ${{ github.ref }}
50
- overwrite : true
47
+ - name : Upload Linux arm64 binary
48
+ uses : svenstaro/upload-release-action@v2
49
+ with :
50
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
51
+ file : build/androidqf_linux_arm64
52
+ asset_name : androidqf_$tag_linux_arm64
53
+ tag : ${{ github.ref }}
54
+ overwrite : true
51
55
52
- - name : Upload Darwin binary
53
- uses : svenstaro/upload-release-action@v2
54
- with :
55
- repo_token : ${{ secrets.GITHUB_TOKEN }}
56
- file : build/androidqf_darwin_amd64
57
- asset_name : androidqf_$tag_darwin_amd64
58
- tag : ${{ github.ref }}
59
- overwrite : true
56
+ - name : Upload Darwin binary
57
+ uses : svenstaro/upload-release-action@v2
58
+ with :
59
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
60
+ file : build/androidqf_darwin_amd64
61
+ asset_name : androidqf_$tag_darwin_amd64
62
+ tag : ${{ github.ref }}
63
+ overwrite : true
60
64
61
- - name : Upload Darwin arm64 binary
62
- uses : svenstaro/upload-release-action@v2
63
- with :
64
- repo_token : ${{ secrets.GITHUB_TOKEN }}
65
- file : build/androidqf_darwin_arm64
66
- asset_name : androidqf_$tag_darwin_arm64
67
- tag : ${{ github.ref }}
68
- overwrite : true
65
+ - name : Upload Darwin arm64 binary
66
+ uses : svenstaro/upload-release-action@v2
67
+ with :
68
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
69
+ file : build/androidqf_darwin_arm64
70
+ asset_name : androidqf_$tag_darwin_arm64
71
+ tag : ${{ github.ref }}
72
+ overwrite : true
0 commit comments