Fix 3 bugs #190
Workflow file for this run
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: Pull Request Check | |
| on: | |
| pull_request: | |
| branches: | |
| - dev/** | |
| paths: | |
| - .github/modules.json | |
| - .github/workflows/build_and_test.yml | |
| - .github/workflows/pull_request.yml | |
| - .github/workflows/roseau_check.yml | |
| - .github/workflows/generate-matrix.js | |
| - gradle/** | |
| - module.*/src/** | |
| - module.sync/processor/src/** | |
| - module.*/build.gradle | |
| - module.sync/processor/build.gradle | |
| - module.*/gradle.properties | |
| - module.sync/processor/gradle.properties | |
| - build.gradle | |
| - module.gradle | |
| - gradle.properties | |
| - settings.gradle | |
| permissions: | |
| contents: read | |
| actions: read | |
| packages: read | |
| pull-requests: write | |
| jobs: | |
| prepare: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| level_0: ${{ steps.matrix.outputs.level_0 }} | |
| level_1: ${{ steps.matrix.outputs.level_1 }} | |
| level_2: ${{ steps.matrix.outputs.level_2 }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - id: matrix | |
| run: node .github/workflows/generate-matrix.js | |
| # ── Build (topological levels) ────────────────────────────────── | |
| processor-build: | |
| needs: [prepare] | |
| uses: ./.github/workflows/build_and_test.yml | |
| with: | |
| module: sync | |
| module_id: anvillib-sync-processor | |
| mod_id: anvillib_sync_processor | |
| ci_build: true | |
| pr_build: true | |
| gradle_project: anvillib-sync-neoforge-26.1:anvillib-sync-processor-neoforge-26.1 | |
| module_dir: module.sync/processor | |
| build-l0: | |
| needs: [prepare] | |
| strategy: | |
| matrix: ${{ fromJSON(needs.prepare.outputs.level_0) }} | |
| uses: ./.github/workflows/build_and_test.yml | |
| with: | |
| module: ${{ matrix.module }} | |
| module_id: ${{ matrix.module_id }} | |
| mod_id: ${{ matrix.mod_id }} | |
| ci_build: true | |
| pr_build: true | |
| build-l1: | |
| needs: [prepare, build-l0] | |
| strategy: | |
| matrix: ${{ fromJSON(needs.prepare.outputs.level_1) }} | |
| uses: ./.github/workflows/build_and_test.yml | |
| with: | |
| module: ${{ matrix.module }} | |
| module_id: ${{ matrix.module_id }} | |
| mod_id: ${{ matrix.mod_id }} | |
| ci_build: true | |
| pr_build: true | |
| build-l2: | |
| needs: [prepare, build-l1, processor-build] | |
| strategy: | |
| matrix: ${{ fromJSON(needs.prepare.outputs.level_2) }} | |
| uses: ./.github/workflows/build_and_test.yml | |
| with: | |
| module: ${{ matrix.module }} | |
| module_id: ${{ matrix.module_id }} | |
| mod_id: ${{ matrix.mod_id }} | |
| ci_build: true | |
| pr_build: true | |
| # ── Roseau API checks ─────────────────────────────────────────── | |
| roseau-l0: | |
| needs: [prepare, build-l0] | |
| strategy: | |
| matrix: ${{ fromJSON(needs.prepare.outputs.level_0) }} | |
| uses: ./.github/workflows/roseau_check.yml | |
| with: | |
| module: ${{ matrix.module }} | |
| module_id: ${{ matrix.module_id }} | |
| roseau-l1: | |
| needs: [prepare, build-l1] | |
| strategy: | |
| matrix: ${{ fromJSON(needs.prepare.outputs.level_1) }} | |
| uses: ./.github/workflows/roseau_check.yml | |
| with: | |
| module: ${{ matrix.module }} | |
| module_id: ${{ matrix.module_id }} | |
| roseau-l2: | |
| needs: [prepare, build-l2] | |
| strategy: | |
| matrix: ${{ fromJSON(needs.prepare.outputs.level_2) }} | |
| uses: ./.github/workflows/roseau_check.yml | |
| with: | |
| module: ${{ matrix.module }} | |
| module_id: ${{ matrix.module_id }} | |
| # ── Main (aggregator) ─────────────────────────────────────────── | |
| main: | |
| needs: [build-l2] | |
| uses: ./.github/workflows/build_and_test.yml | |
| with: | |
| module: main | |
| module_id: anvillib | |
| mod_id: anvillib | |
| ci_build: true | |
| pr_build: true | |
| gametest: true | |
| main-roseau: | |
| needs: [main] | |
| uses: ./.github/workflows/roseau_check.yml | |
| with: | |
| module: main | |
| module_id: anvillib |