From 62238299e6fad5188d50440425701b6fdac2e88c Mon Sep 17 00:00:00 2001 From: Justin Abrahms Date: Wed, 11 Jan 2023 10:06:01 -0800 Subject: [PATCH] Build for all platforms & architectures that we support --- .github/workflows/go-ossf-slsa3-publish.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/go-ossf-slsa3-publish.yml b/.github/workflows/go-ossf-slsa3-publish.yml index 46c2323..09da43d 100644 --- a/.github/workflows/go-ossf-slsa3-publish.yml +++ b/.github/workflows/go-ossf-slsa3-publish.yml @@ -48,8 +48,18 @@ jobs: contents: write # To upload assets to release. actions: read # To read the workflow path. needs: args + strategy: + matrix: + os: + - linux + - windows + - darwin + arch: + - amd64 + - arm64 uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.2.2 with: go-version: 1.17 # Optional: only needed if using ldflags. evaluated-envs: "COMMIT_DATE:${{needs.args.outputs.commit-date}}, COMMIT:${{needs.args.outputs.commit}}, VERSION:${{needs.args.outputs.version}}, TREE_STATE:${{needs.args.outputs.tree-state}}" + config-file: .slsa-goreleaser/${{matrix.os}}-${{matrix.arch}}.yml