File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Release Go Binary
3
3
on :
4
4
release :
5
5
types : [created]
6
- workflow_dispatch :
6
+ workflow_dispatch : # Allows manual trigger
7
7
8
8
permissions :
9
9
contents : write
@@ -16,30 +16,29 @@ jobs:
16
16
strategy :
17
17
matrix :
18
18
goos : [linux, windows, darwin]
19
- goarch : ["386", amd64, arm64]
20
- exclude :
21
- - goarch : " 386"
22
- goos : darwin
23
- - goarch : arm64
24
- goos : windows
19
+ goarch : [amd64]
25
20
steps :
26
21
- name : Checkout Repository
27
22
uses : actions/checkout@v4
28
23
29
24
- name : Set Up Go
30
25
uses : actions/setup-go@v4
31
26
with :
32
- go-version : " 1.20" # Specify Go version
27
+ go-version : " 1.20" # Adjust Go version as per requirement
33
28
34
29
- name : Build Go Binary
35
30
run : |
36
- GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o file-encryptor-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/file-encryptor
31
+ echo "Building for ${{ matrix.goos }}-${{ matrix.goarch }}"
32
+ GO111MODULE=on CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \
33
+ go build -o file-encryptor-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/file-encryptor
37
34
38
35
- name : Upload Release Assets
39
36
uses : softprops/action-gh-release@v1
40
37
with :
41
38
files : |
42
- file-encryptor-${{ matrix.goos }}-${{ matrix.goarch }}
39
+ file-encryptor-linux-amd64
40
+ file-encryptor-windows-amd64.exe
41
+ file-encryptor-darwin-amd64
43
42
LICENSE
44
43
README.md
45
44
env :
You can’t perform that action at this time.
0 commit comments