Build All Platforms #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build All Platforms | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| trigger-builds: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger Windows Build | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| await github.rest.actions.createWorkflowDispatch({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| workflow_id: 'build-windows.yml', | |
| ref: context.ref | |
| }) | |
| - name: Trigger Linux Build | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| await github.rest.actions.createWorkflowDispatch({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| workflow_id: 'build-linux.yml', | |
| ref: context.ref | |
| }) | |
| - name: Trigger macOS Build | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| await github.rest.actions.createWorkflowDispatch({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| workflow_id: 'build-macos.yml', | |
| ref: context.ref | |
| }) | |
| - name: Summary | |
| run: | | |
| echo "## Build All Platforms" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "Triggered builds for:" >> $GITHUB_STEP_SUMMARY | |
| echo "- Windows" >> $GITHUB_STEP_SUMMARY | |
| echo "- Linux (x64 + ARM64)" >> $GITHUB_STEP_SUMMARY | |
| echo "- macOS (Universal)" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "Check the [Actions tab](/${{ github.repository }}/actions) for build progress." >> $GITHUB_STEP_SUMMARY |