Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

permissions:
attestations: write
contents: read
contents: write
id-token: write

strategy:
Expand All @@ -41,11 +41,11 @@ jobs:
os: [ macos-latest, ubuntu-latest, windows-latest ]
include:
- os: macos-latest
os_name: macos
os-name: macos
- os: ubuntu-latest
os_name: linux
os-name: linux
- os: windows-latest
os_name: windows
os-name: windows

steps:

Expand All @@ -64,9 +64,17 @@ jobs:
name: Upload coverage to Codecov
with:
file: ./artifacts/coverage/coverage.cobertura.xml
flags: ${{ matrix.os_name }}
flags: ${{ matrix.os-name }}
token: ${{ secrets.CODECOV_TOKEN }}

- name: Generate SBOM
uses: anchore/sbom-action@e8d2a6937ecead383dfe75190d104edd1f9c5751 # v0.16.0
with:
artifact-name: build-${{ matrix.os-name }}.spdx.json
output-file: ./artifacts/build.spdx.json
path: ./artifacts/bin
upload-release-assets: ${{ runner.os == 'Windows' }}

- name: Attest artifacts
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
if: |
Expand All @@ -81,13 +89,13 @@ jobs:
- name: Publish artifacts
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: artifacts-${{ matrix.os_name }}
name: artifacts-${{ matrix.os-name }}
path: ./artifacts

- name: Publish NuGet packages
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: packages-${{ matrix.os_name }}
name: packages-${{ matrix.os-name }}
path: ./artifacts/package/release
if-no-files-found: error

Expand Down