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
33on :
44 release :
55 types : [created]
6- workflow_dispatch :
6+ workflow_dispatch : # Allows manual trigger
77
88permissions :
99 contents : write
@@ -16,30 +16,29 @@ jobs:
1616 strategy :
1717 matrix :
1818 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]
2520 steps :
2621 - name : Checkout Repository
2722 uses : actions/checkout@v4
2823
2924 - name : Set Up Go
3025 uses : actions/setup-go@v4
3126 with :
32- go-version : " 1.20" # Specify Go version
27+ go-version : " 1.20" # Adjust Go version as per requirement
3328
3429 - name : Build Go Binary
3530 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
3734
3835 - name : Upload Release Assets
3936 uses : softprops/action-gh-release@v1
4037 with :
4138 files : |
42- file-encryptor-${{ matrix.goos }}-${{ matrix.goarch }}
39+ file-encryptor-linux-amd64
40+ file-encryptor-windows-amd64.exe
41+ file-encryptor-darwin-amd64
4342 LICENSE
4443 README.md
4544 env :
You can’t perform that action at this time.
0 commit comments