File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 9
9
strategy :
10
10
matrix :
11
11
os : [linux, darwin, windows]
12
+ goarch : [amd64, arm64]
13
+
12
14
steps :
13
15
- name : Checkout code
14
16
uses : actions/checkout@v2
21
23
- name : Build Go binaries
22
24
run : |
23
25
if [ ${{ matrix.os }} == "windows" ]; then
24
- CGO_ENABLED=0 GOOS=${{ matrix.os }} go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o tf-profile.exe .
26
+ CGO_ENABLED=0 GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o tf-profile.exe .
25
27
else
26
- CGO_ENABLED=0 GOOS=${{ matrix.os }} go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o tf-profile .
28
+ CGO_ENABLED=0 GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o tf-profile .
27
29
fi
28
30
29
31
- name : Extract release version from branch name
33
35
- name : Create artifact
34
36
uses : actions/upload-artifact@v2
35
37
with :
36
- name : tf-profile-v${{ steps.release_version.outputs.version }}-${{ matrix.os }}
38
+ name : tf-profile-v${{ steps.release_version.outputs.version }}-${{ matrix.os }}-${{ matrix.arch }}
37
39
path : |
38
40
./tf-profile
39
41
./tf-profile.exe
You can’t perform that action at this time.
0 commit comments