Skip to content
Closed
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
60 changes: 58 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
runs-on: macos-latest
permissions:
contents: write
id-token: write
attestations: write
env:
JOB_TYPE: BUILD
HOMEBREW_NO_INSTALL_CLEANUP: 1
Expand All @@ -42,19 +44,73 @@ jobs:
- run: ./build_duet.tool
- run: ./build_oc.tool

- name: Generate SHA256 checksums
working-directory: Binaries
run: |
set -euo pipefail
shopt -s nullglob
zips=(*.zip)
if [ ${#zips[@]} -eq 0 ]; then
echo "::error::No zip files found in Binaries"
exit 1
fi
rm -f SHA256SUMS.txt
for f in "${zips[@]}"; do
shasum -a 256 "$f" > "$f.sha256"
cat "$f.sha256" >> SHA256SUMS.txt
done
{
echo "### SHA256 checksums"
echo '```'
cat SHA256SUMS.txt
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
cat SHA256SUMS.txt

- name: Upload to Artifacts
uses: actions/upload-artifact@v6
with:
name: macOS XCODE5 Artifacts
path: Binaries/*.zip
- name: Upload to Release
path: |
Binaries/*.zip
Binaries/*.sha256
Binaries/SHA256SUMS.txt

- name: Attest build provenance
if: github.event_name == 'release'
uses: actions/attest-build-provenance@v3
with:
subject-checksums: Binaries/SHA256SUMS.txt

- name: Upload zips to Release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2.9.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Binaries/*.zip
tag: ${{ github.ref }}
file_glob: true
overwrite: true

- name: Upload checksums to Release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2.9.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Binaries/*.sha256
tag: ${{ github.ref }}
file_glob: true
overwrite: true

- name: Upload SHA256SUMS.txt to Release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2.9.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Binaries/SHA256SUMS.txt
asset_name: SHA256SUMS.txt
tag: ${{ github.ref }}
overwrite: true

build-linux-clangpdb:
name: Linux CLANGPDB
Expand Down
Loading