Skip to content

Build All Platforms

Build All Platforms #3

Workflow file for this run

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