omtex
aien-dev/omtex
Brought by drakestapleton
omtex / .github / workflows / ci.yml
| 1 | # CI for omtex: fetches the pinned omega-mv commit (tools/pin.sh), checks the committed omc |
| 2 | # against the pinned sha256, and runs tests/run.sh on a GitHub-hosted arm64 runner (omc is an |
| 3 | # AArch64 ELF). A second job writes an SPDX SBOM of the tree for auditors. |
| 4 | name: CI |
| 5 | on: |
| 6 | pull_request: |
| 7 | push: |
| 8 | branches: [main] |
| 9 | permissions: |
| 10 | contents: read |
| 11 | jobs: |
| 12 | test: |
| 13 | runs-on: ubuntu-24.04-arm |
| 14 | timeout-minutes: 20 |
| 15 | env: |
| 16 | OMTEX_NICE: '' |
| 17 | steps: |
| 18 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 19 | with: |
| 20 | persist-credentials: false |
| 21 | - name: Pin record |
| 22 | run: sed -n '1,4p' tools/pin.sh |
| 23 | - name: Run the suite with the pinned omc |
| 24 | run: sh tests/run.sh |
| 25 | sbom: |
| 26 | runs-on: ubuntu-latest |
| 27 | timeout-minutes: 10 |
| 28 | steps: |
| 29 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 30 | with: |
| 31 | persist-credentials: false |
| 32 | - uses: anchore/sbom-action@66cbf4bc1f1c0d2edc94016e65bc221b6bb0ad6c # v0.24.3 |
| 33 | with: |
| 34 | path: . |
| 35 | format: spdx-json |
| 36 | artifact-name: sbom-${{ github.sha }}.spdx.json |