File tree Expand file tree Collapse file tree 1 file changed +0
-66
lines changed Expand file tree Collapse file tree 1 file changed +0
-66
lines changed Original file line number Diff line number Diff line change 45
45
- name : Run tests
46
46
working-directory : ./launcher_go/v2
47
47
run : go test ./...
48
-
49
- build_latest :
50
- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
51
- permissions :
52
- contents : write
53
- runs-on : ubuntu-latest
54
- needs : [lint, test]
55
- strategy :
56
- matrix :
57
- goos : [linux, darwin]
58
- goarch : ["386", amd64, arm64]
59
- exclude :
60
- - goarch : " 386"
61
- goos : darwin
62
- steps :
63
- - uses : actions/checkout@v4
64
- - uses : wangyoucao577/go-release-action@v1
65
- with :
66
- github_token : ${{ secrets.GITHUB_TOKEN }}
67
- goos : ${{ matrix.goos }}
68
- goarch : ${{ matrix.goarch }}
69
- project_path : ./launcher_go/v2
70
- binary_name : launcher2
71
- overwrite : true
72
- release_tag : latest
73
-
74
- add_version :
75
- runs-on : ubuntu-latest
76
- needs : build_latest
77
- permissions :
78
- contents : write
79
- steps :
80
- - uses : actions/checkout@v4
81
- - uses : actions/setup-go@v5
82
- with :
83
- go-version : " >=1.21.0"
84
- - run : go run ./... --version > ../../launcher_version.txt
85
- working-directory : ./launcher_go/v2
86
- - name : upload version
87
- uses : softprops/action-gh-release@v2
88
- with :
89
- tag_name : latest
90
- files : launcher_version.txt
91
-
92
- build_release :
93
- if : github.event_name == 'release'
94
- permissions :
95
- contents : write
96
- runs-on : ubuntu-latest
97
- needs : [lint, test]
98
- strategy :
99
- matrix :
100
- goos : [linux, darwin]
101
- goarch : ["386", amd64, arm64]
102
- exclude :
103
- - goarch : " 386"
104
- goos : darwin
105
- steps :
106
- - uses : actions/checkout@v4
107
- - uses : wangyoucao577/go-release-action@v1
108
- with :
109
- github_token : ${{ secrets.GITHUB_TOKEN }}
110
- goos : ${{ matrix.goos }}
111
- goarch : ${{ matrix.goarch }}
112
- project_path : ./launcher_go/v2
113
- binary_name : launcher2
You can’t perform that action at this time.
0 commit comments