File tree 2 files changed +2
-17
lines changed
2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
build :
11
11
name : Build
12
- runs-on : ubuntu -latest
12
+ runs-on : darwin -latest
13
13
if : ${{ github.event.workflow_run.conclusion == 'success' }}
14
14
steps :
15
15
- uses : actions/checkout@v4
19
19
with :
20
20
go-version : ^1.22
21
21
22
- - name : Get libasound2
23
- run : sudo apt-get install libasound2-dev
24
-
25
22
- name : Build
26
23
run : go build -v ./...
27
24
Original file line number Diff line number Diff line change 38
38
- name : Determine Go version
39
39
id : set_goversion
40
40
run : |
41
- if [ "${{ matrix.goos }}" = "linux" ] && [ "${{ matrix.goarch }}" = "amd64" ]; then
42
- echo "::set-output name=goversion::https://go.dev/dl/go1.22.0.linux-amd64.tar.gz"
43
- elif [ "${{ matrix.goos }}" = "darwin" ] && [ "${{ matrix.goarch }}" = "arm64" ]; then
41
+ if [ "${{ matrix.goos }}" = "darwin" ] && [ "${{ matrix.goarch }}" = "arm64" ]; then
44
42
echo "::set-output name=goversion::https://go.dev/dl/go1.22.0.darwin-arm64.pkg"
45
- elif [ "${{ matrix.goos }}" = "linux" ] && [ "${{ matrix.goarch }}" = "arm64" ]; then
46
- echo "::set-output name=goversion::https://go.dev/dl/go1.22.0.linux-arm64.tar.gz"
47
43
elif [ "${{ matrix.goos }}" = "darwin" ] && [ "${{ matrix.goarch }}" = "amd64" ]; then
48
44
echo "::set-output name=goversion::https://go.dev/dl/go1.22.0.darwin-amd64.pkg"
49
45
fi
57
53
goarch : [amd64, arm64]
58
54
steps :
59
55
- uses : actions/checkout@v4
60
- - name : Get libasound2
61
- run : |
62
- if [ "${{ matrix.goos }}" = "linux" ]; then
63
- sudo apt-get install libasound2-dev;
64
- fi
65
- - name : Enable CGO for Linux builds
66
- if : matrix.goos == 'linux'
67
- run : echo "CGO_ENABLED=1" >> $GITHUB_ENV
68
56
- uses : wangyoucao577/go-release-action@v1
69
57
with :
70
58
github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments