File tree 1 file changed +7
-13
lines changed
1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 47
47
strategy :
48
48
matrix :
49
49
os :
50
- - ubuntu-latest
51
- - macos-latest
52
- arch :
53
- - amd64
54
- - arm64
50
+ - ubuntu-latest # amd64
51
+ - macos-13 # amd64
52
+ - macos-14 # arm64
55
53
steps :
56
54
- name : Set up Go 1.x
57
55
uses : actions/setup-go@v2
@@ -60,25 +58,21 @@ jobs:
60
58
id : go
61
59
62
60
- name : Checkout code
63
- uses : actions/checkout@v2
61
+ uses : actions/checkout@v4
64
62
65
- - name : Build project # This would actually build your project, using zip for an example artifact
63
+ - name : Build project
66
64
run : |
67
65
go get -v -t -d ./...
68
66
mkdir bin
69
- CGO_ENABLED=1 GOARCH=${arch} go build -v -ldflags "-X github.com/picoCTF/cmgr/cmgr.version=`git describe --tags`" -o bin ./...
67
+ CGO_ENABLED=1 go build -v -ldflags "-X github.com/picoCTF/cmgr/cmgr.version=`git describe --tags`" -o bin ./...
70
68
cp LICENSE bin/LICENSE
71
69
cat NOTICE NOTICE.release > bin/NOTICE
72
70
cd bin && tar czvf cmgr.tar.gz cmgr cmgrd LICENSE NOTICE
73
- env :
74
- arch : ${{ matrix.arch }}
75
71
76
72
- name : Get OS/architecture suffix
77
73
id : suffix
78
74
run : |
79
- echo "::set-output name=arch_suffix::`go version | cut -d ' ' -f 4,4 | cut -d '/' -f 1,1`_${arch}"
80
- env :
81
- arch : ${{ matrix.arch }}
75
+ echo "::set-output name=arch_suffix::`go version | cut -d ' ' -f 4,4 | tr '/' '_'`"
82
76
83
77
- name : Upload Binaries
84
78
id : upload-binaries
You can’t perform that action at this time.
0 commit comments