File tree 2 files changed +16
-19
lines changed
2 files changed +16
-19
lines changed Original file line number Diff line number Diff line change 27
27
28
28
steps :
29
29
- name : Checkout repository
30
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
30
+ uses : actions/checkout@v2
31
31
with :
32
32
fetch-depth : 0
33
33
ref : " main"
55
55
env :
56
56
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57
57
run : |
58
+ make release
58
59
echo "Using tag $TAG to create release"
59
- gh release create -F RELEASE_CHANGELOG.md ${TAG} LICENSE README.md
60
+ gh release create -F RELEASE_CHANGELOG.md ${TAG} LICENSE README.md *.gz *.zip
60
61
Original file line number Diff line number Diff line change 1
1
.PHONY : test
2
2
3
- all : test build
3
+ all : test tf
4
4
5
- test : * /* .go
5
+ test : main.go internal /* .go
6
6
go test ./... && go vet ./...
7
7
8
- build : bin/macos-arm/tf bin/macos-x86/tf bin/linux-x86/tf bin/linux-arm/tf
9
-
10
- bin/macos-arm/tf : * /* .go
11
- GOOS=darwin GOARCH=arm64 go build -o bin/macos-arm/tf
12
-
13
- bin/macos-x86/tf : * /* .go
14
- GOOS=darwin GOARCH=amd64 go build -o bin/macos-x86/tf
15
-
16
- bin/linux-x86/tf : * /* .go
17
- GOOS=linux GOARCH=amd64 go build -o bin/linux-x86/tf
18
-
19
- bin/linux-arm/tf : * /* .go
20
- GOOS=linux GOARCH=arm64 go build -o bin/linux-arm/tf
21
-
22
-
8
+ # local version you can run
9
+ tf :
10
+ go build -o bin/tf
11
+
12
+ release : test
13
+ GOOS=darwin GOARCH=arm64 go build -o tf && gzip < tf > tf-macos-arm.gz
14
+ GOOS=darwin GOARCH=amd64 go build -o tf && gzip < tf > tf-macos-x86.gz
15
+ GOOS=linux GOARCH=amd64 go build -o tf && gzip < tf > tf-linux-x86.gz
16
+ GOOS=linux GOARCH=arm64 go build -o tf && gzip < tf > tf-linux-arm.gz
17
+ GOOS=windows GOARCH=amd64 go build -o tf && zip -mq tf-windows-x86.exe.zip tf
18
+ GOOS=windows GOARCH=arm64 go build -o tf && zip -mq tf-windows-arm.exe.zip tf
You can’t perform that action at this time.
0 commit comments