-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build logcli for multiple architectures
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
strategy: | ||
matrix: | ||
arch: [amd64, arm64] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
@@ -32,15 +35,20 @@ jobs: | |
go install github.com/golang/protobuf/[email protected] | ||
go install github.com/gogo/protobuf/[email protected] | ||
- name: Pre-generate code | ||
run: make BUILD_IN_CONTAINER=false generate | ||
|
||
- name: Build logcli | ||
run: make BUILD_IN_CONTAINER=false logcli | ||
env: | ||
GOARCH: ${{ matrix.arch }} | ||
|
||
- name: Zip logcli | ||
run: zip --junk-paths logcli_amd64.zip cmd/logcli/logcli | ||
run: zip --junk-paths logcli_${{ matrix.arch }}.zip cmd/logcli/logcli | ||
|
||
- name: Upload logcli as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: logcli_amd64 | ||
path: logcli_amd64.zip | ||
name: logcli_${{ matrix.arch }} | ||
path: logcli_${{ matrix.arch }}.zip | ||
retention-days: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters