File tree Expand file tree Collapse file tree 1 file changed +14
-26
lines changed
Expand file tree Collapse file tree 1 file changed +14
-26
lines changed Original file line number Diff line number Diff line change @@ -11,33 +11,21 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v2
14-
15- - name : Setup Golang
16- uses : actions/setup-go@v2
17- with :
18- go-version : ~1.19.3
19-
20- - uses : actions/cache@v1
14+ -
15+ name : Build
16+ uses : crazy-max/ghaction-xgo@v2
2117 with :
22- path : ~/go/pkg/mod
23- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
24- restore-keys : |
25- ${{ runner.os }}-go-
26-
27- - name : Test
28- run : |
29- git submodule init
30- git submodule update
31- cd ./xdcc/
32-
33- ../ci/test.sh
34-
35- - name : Build
36- run : |
37- git submodule init
38- git submodule update
39- cd ./xdcc/
40- ../ci/build.sh
18+ xgo_version : latest
19+ go_version : 1.18
20+ dest : dist
21+ prefix : plugin-xdcc
22+ targets : linux/amd64,linux/arm64,darwin/arm64
23+ v : true
24+ x : false
25+ race : false
26+ ldflags : -s -w
27+ buildmode : plugin
28+ trimpath : false
4129
4230 - name : Prepare release version
4331 run : echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments