Skip to content

new compiler CI init #3207

new compiler CI init

new compiler CI init #3207

Workflow file for this run

name: CI Manager
on:
pull_request:
jobs:
check-changes:
runs-on: ubuntu-24.04
permissions:
pull-requests: read
outputs:
zig: ${{ steps.filter.outputs.zig }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
zig:
- 'src/**'
- 'build.zig'
- 'build.zig.zon'
call-zig-workflow:
needs: check-changes
if: needs.changes.outputs.zig == 'true'
uses: ./.github/workflows/ci_zig.yml
call-old-workflow:
needs: check-changes
if: needs.changes.outputs.zig != 'true'
uses: ./.github/workflows/ci_manager_old.yml

Check failure on line 32 in .github/workflows/ci_manager.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci_manager.yml

Invalid workflow file

error parsing called workflow ".github/workflows/ci_manager.yml" -> "./.github/workflows/ci_manager_old.yml" --> "./.github/workflows/markdown-link-check.yml" : failed to fetch workflow: workflow was not found.
finish:
needs: [check-changes, call-zig-workflow, call-old-workflow]
runs-on: ubuntu-latest
if: always()
steps:
- name: Check workflow results
run: |
if [[ "${{ needs.changes.outputs.zig }}" == "true" ]]; then
if [[ "${{ needs.call-zig-workflow.result }}" != "success" ]]; then
echo "ci_zig.yml failed."
exit 1
fi
else
if [[ "${{ needs.call-old-workflow.result }}" != "success" ]]; then
echo "ci_manager_old.yml failed."
exit 1
fi
fi