chore(rust): release #1226
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| rust: ${{ steps.filter.outputs.rust }} | |
| java: ${{ steps.filter.outputs.java }} | |
| ts: ${{ steps.filter.outputs.ts }} | |
| cpp: ${{ steps.filter.outputs.cpp }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4.0.2 | |
| id: filter | |
| with: | |
| filters: | | |
| rust: | |
| - 'justfile' | |
| - 'rust/mod.just' | |
| - '.github/**' | |
| - 'rust/**' | |
| - 'test/**' | |
| java: | |
| - 'justfile' | |
| - 'java/mod.just' | |
| - '.github/**' | |
| - 'java/**' | |
| - 'test/**' | |
| ts: | |
| - 'justfile' | |
| - 'ts/mod.just' | |
| - '.github/**' | |
| - 'ts/**' | |
| - 'test/**' | |
| cpp: | |
| - 'justfile' | |
| - 'cpp/mod.just' | |
| - '.github/**' | |
| - 'cpp/**' | |
| - 'test/**' | |
| rust: | |
| needs: changes | |
| if: needs.changes.outputs.rust == 'true' | |
| uses: ./.github/workflows/rust.yml | |
| with: | |
| run-release: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| secrets: inherit | |
| permissions: | |
| contents: write | |
| id-token: write | |
| java: | |
| needs: changes | |
| if: needs.changes.outputs.java == 'true' | |
| uses: ./.github/workflows/java.yml | |
| permissions: | |
| id-token: write | |
| contents: read | |
| ts: | |
| needs: changes | |
| if: needs.changes.outputs.ts == 'true' | |
| uses: ./.github/workflows/ts.yml | |
| permissions: | |
| contents: read | |
| cpp: | |
| needs: changes | |
| if: needs.changes.outputs.cpp == 'true' | |
| uses: ./.github/workflows/cpp.yml | |
| permissions: | |
| id-token: write | |
| contents: read | |
| docs: | |
| uses: ./.github/workflows/gh-pages.yml | |
| permissions: | |
| contents: write | |
| ci-passed: | |
| needs: [rust, java, ts, cpp, docs] | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: echo "${{ toJSON(needs) }}" | |
| - if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | |
| run: exit 1 |