Add macOS artifacts to release workflow.

This commit is contained in:
Bartosz Taudul
2026-07-21 19:57:45 +02:00
parent b0be3a5776
commit 2247f1d14b
2 changed files with 13 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ on:
pull_request:
branches: [ master ]
workflow_dispatch:
workflow_call:
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm-cache

View File

@@ -8,24 +8,34 @@ jobs:
release-build-windows:
uses: ./.github/workflows/windows.yml
release-build-macos:
uses: ./.github/workflows/macos.yml
release-build-manual:
uses: ./.github/workflows/latex.yml
attach-to-release:
needs: [release-build-windows, release-build-manual]
needs: [release-build-windows, release-build-macos, release-build-manual]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
- name: Create versioned zip
- name: Create versioned Windows zip
run: |
VERSION="${{ github.event.release.tag_name }}"
VERSION_NO_V="${VERSION#v}"
cd windows
zip -r ../windows-$VERSION_NO_V.zip .
- name: Create versioned macOS zip
run: |
VERSION="${{ github.event.release.tag_name }}"
VERSION_NO_V="${VERSION#v}"
cd macos
zip -r ../macos-$VERSION_NO_V.zip .
- uses: softprops/action-gh-release@v2
with:
files: |
windows-*.zip
macos-*.zip
manual/tracy.pdf