mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-05-22 00:12:51 +00:00
chore: release assets for multiple platforms (#434)
* chore: release assets for multiple platforms Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com> * ci: release assets for windows and macOS Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com> * ci: add configuration files for macOS and windows Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com> * ci: remove a workflow job `if-failed` This job is unneeded anymore. https://github.com/slsa-framework/slsa-verifier/pull/434#discussion_r1063427948 Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com> * ci: move configuration files to a directory `.slsa-goreleaser` Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com> Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com> Co-authored-by: laurentsimon <64505099+laurentsimon@users.noreply.github.com>
This commit is contained in:
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
@@ -32,7 +32,17 @@ jobs:
|
||||
echo "version=$(git describe --tags --always --dirty | cut -c2-)" >> "$GITHUB_OUTPUT"
|
||||
|
||||
builder:
|
||||
name: builder-${{matrix.os}}-${{matrix.arch}}
|
||||
needs: [args]
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- linux
|
||||
- windows
|
||||
- darwin
|
||||
arch:
|
||||
- amd64
|
||||
- arm64
|
||||
permissions:
|
||||
actions: read # For the detection of GitHub Actions environment.
|
||||
id-token: write # For signing.
|
||||
@@ -40,20 +50,6 @@ jobs:
|
||||
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.4.0
|
||||
with:
|
||||
go-version: 1.18
|
||||
config-file: .github/config-release.yml
|
||||
config-file: .slsa-goreleaser/${{matrix.os}}-${{matrix.arch}}.yml
|
||||
compile-builder: true
|
||||
evaluated-envs: "VERSION:${{needs.args.outputs.version}}"
|
||||
|
||||
# In case this fails, e.g. build configuration changes, file an issue in slsa-verifier
|
||||
if-failed:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [builder]
|
||||
if: always() && needs.builder.result == 'failure'
|
||||
steps:
|
||||
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
|
||||
with:
|
||||
repository: slsa-framework/example-package
|
||||
- run: |
|
||||
set -euo pipefail
|
||||
|
||||
./.github/workflows/scripts/e2e-report-failure.sh
|
||||
|
||||
Reference in New Issue
Block a user