Feature/nmv3 002 compatibility ci #2
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: Compatibility | |
| on: | |
| push: | |
| branches: [ "develop", "main", "master" ] | |
| pull_request: | |
| branches: [ "develop", "main", "master" ] | |
| jobs: | |
| compatibility_matrix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Zig | |
| uses: mlugg/setup-zig@v2 | |
| with: | |
| version: 0.15.2 | |
| - name: Generate Compatibility Matrix | |
| id: compat_matrix | |
| continue-on-error: true | |
| run: zig build compat-matrix -- compatibility/compatibility-matrix.json | |
| - name: Upload Compatibility Matrix | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: compatibility-matrix | |
| path: | | |
| compatibility/compatibility-matrix.json | |
| compatibility/compatibility-matrix.md | |
| - name: Fail On Compatibility Regressions | |
| if: steps.compat_matrix.outcome == 'failure' | |
| run: | | |
| echo "::error::Compatibility matrix detected regressions. See the uploaded artifact for details." | |
| exit 1 |