-
Notifications
You must be signed in to change notification settings - Fork 8
Alternative archs build #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,13 +20,18 @@ jobs: | |
|
|
||
| - name: Build from source | ||
| run: | | ||
| CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o ./bin/wait-for-it | ||
| CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags "-s -w" -o ./bin/wait-for-it.linux-386.exe | ||
| CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o ./bin/wait-for-it-linux-amd64.exe | ||
| CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o ./bin/wait-for-it-linux-arm64.exe | ||
|
|
||
| - name: Upload artifact | ||
| - name: Upload artifacts | ||
| uses: actions/upload-artifact@v2 | ||
| with: | ||
| name: wait-for-it | ||
| path: ./bin/wait-for-it | ||
| name: linux artifacts | ||
| path: | | ||
| ./bin/wait-for-it.linux-i386 | ||
| ./bin/wait-for-it.linux-amd64 | ||
| ./bin/wait-for-it.linux-arm64 | ||
|
Comment on lines
+32
to
+34
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should also copy the |
||
|
|
||
| generate-windows: | ||
| name: Generate Windows binary | ||
|
|
@@ -40,13 +45,18 @@ jobs: | |
|
|
||
| - name: Build from source | ||
| run: | | ||
| CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o ./bin/wait-for-it_win64.exe | ||
| CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags "-s -w" -o ./bin/wait-for-it-windows-386.exe | ||
| CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o ./bin/wait-for-it-windows-amd64.exe | ||
| CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -ldflags "-s -w" -o ./bin/wait-for-it-windows-arm64.exe | ||
|
|
||
| - name: Upload artifact | ||
| - name: Upload artifacts | ||
| uses: actions/upload-artifact@v2 | ||
| with: | ||
| name: wait-for-it_windows | ||
| path: ./bin/wait-for-it_win64.exe | ||
| name: windows artifacts | ||
| path: | | ||
| ./bin/wait-for-it.windows-i386.exe | ||
| ./bin/wait-for-it.windows-amd64.exe | ||
| ./bin/wait-for-it.windows-arm64.exe | ||
|
|
||
| generate-mac: | ||
| name: Generate MacOS binary | ||
|
|
@@ -60,13 +70,16 @@ jobs: | |
|
|
||
| - name: Build from source | ||
| run: | | ||
| CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o ./bin/wait-for-it_mac | ||
| CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o ./bin/wait-for-it-darwin-amd64.exe | ||
| CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o ./bin/wait-for-it-darwin-arm64.exe | ||
|
Comment on lines
+73
to
+74
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These should not end with |
||
|
|
||
| - name: Upload artifact | ||
| - name: Upload artifacts | ||
| uses: actions/upload-artifact@v2 | ||
| with: | ||
| name: wait-for-it_mac | ||
| path: ./bin/wait-for-it_mac | ||
| name: darwin artifacts | ||
| path: | | ||
| ./bin/wait-for-it.darwin-amd64 | ||
| ./bin/wait-for-it.darwin-arm64 | ||
|
|
||
|
|
||
| release: | ||
|
|
@@ -130,6 +143,6 @@ jobs: | |
| - name: Upload Release Asset | ||
| id: upload-release-asset | ||
| run: | | ||
| hub release edit -a ./bin/wait-for-it -a ./bin/wait-for-it_mac -a ./bin/wait-for-it_win64.exe -m "" ${{ env.VERSION }} | ||
| hub release edit -a ./bin/wait-for-it.linux-i386 -a ./bin/wait-for-it.linux-amd64 -a ./bin/wait-for-it.linux-arm64 -a ./bin/wait-for-it.windows-i386.exe -a ./bin/wait-for-it.windows-amd64.exe -a ./bin/wait-for-it.windows-arm64.exe -a ./bin/wait-for-it.darwin-amd64 -a ./bin/wait-for-it.darwin-arm64 -m "" ${{ env.VERSION }} | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the |
||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should not end with
.exe