-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: build for multiple os/arch Signed-off-by: Ramkumar Chinchani <[email protected]> * fix: enforce output cmdline var Signed-off-by: Ramkumar Chinchani <[email protected]> --------- Signed-off-by: Ramkumar Chinchani <[email protected]>
- Loading branch information
Showing
6 changed files
with
36 additions
and
29 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 |
---|---|---|
|
@@ -17,6 +17,8 @@ jobs: | |
strategy: | ||
matrix: | ||
go-version: ["1.20"] | ||
os: ["linux"] | ||
arch: ["amd64"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: benjlevesque/[email protected] | ||
|
@@ -27,7 +29,7 @@ jobs: | |
go-version: ${{ matrix.go-version }} | ||
- name: build | ||
run: | | ||
make binary | ||
make binary OS=${{ matrix.os }} ARCH=${{ matrix.arch }} | ||
- name: lint | ||
run: | | ||
make lint | ||
|
@@ -36,14 +38,16 @@ jobs: | |
- uses: actions/cache/save@v3 | ||
if: always() | ||
with: | ||
path: bin/sbom | ||
file: bin/stacker-sbom-* | ||
key: ${{ github.sha }} | ||
release: | ||
if: github.event_name == 'release' && github.event.action== 'published' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go-version: ["1.20"] | ||
os: ["linux"] | ||
arch: ["amd64"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up golang ${{ matrix.go-version }} | ||
|
@@ -52,7 +56,7 @@ jobs: | |
go-version: ${{ matrix.go-version }} | ||
- name: build | ||
run: | | ||
make binary RELEASE_TAG=${{ github.event.release.tag_name }} | ||
make binary RELEASE_TAG=${{ github.event.release.tag_name }} OS=${{ matrix.os }} ARCH=${{ matrix.arch }} | ||
- uses: actions/cache/save@v3 | ||
if: always() | ||
with: | ||
|
@@ -62,7 +66,7 @@ jobs: | |
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: bin/sbom | ||
file: bin/stacker-sbom-* | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true |
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
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
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
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
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