interplane.Get Omega
Read in your language

cortex

aien-dev/cortex

Brought by drakestapleton

branch main Branches Tags History

cortex / .github / workflows / ci.yml

38 lines · 1610 bytes Raw Blame History
1# CI for cortex: fetch the omega-mv commit named in PIN (tools/omc.sh checks the omc sha256 there),
2# verify the compiler digest and compile both units through build.sh on a GitHub-hosted arm64
3# runner (omc is an AArch64 ELF). The differential suites under tests/ need a cortex-rs database
4# copy and the SQLite oracle sources that are not in this repository, so they stay NOT_RUN here;
5# their receipts live under evidence/. A second job writes an SPDX SBOM of the tree for auditors.
6name: CI
7on:
8 pull_request:
9 push:
10 branches: [main, wip/omega-cortex]
11permissions:
12 contents: read
13jobs:
14 build:
15 runs-on: ubuntu-24.04-arm
16 timeout-minutes: 20
17 steps:
18 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19 with:
20 persist-credentials: false
21 - name: Pinned omega-mv
22 run: |
23 git clone --filter=blob:none https://github.com/aien-dev/omega-mv.git "$RUNNER_TEMP/omega"
24 git -C "$RUNNER_TEMP/omega" checkout --quiet "$(awk '$1 == "omega-mv" { print $2 }' PIN)"
25 - name: Compile both units with the pinned omc (digest checked by tools/omc.sh)
26 run: OMEGA_REPO="$RUNNER_TEMP/omega" CXO_NICED=1 sh build.sh
27 sbom:
28 runs-on: ubuntu-latest
29 timeout-minutes: 10
30 steps:
31 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32 with:
33 persist-credentials: false
34 - uses: anchore/sbom-action@66cbf4bc1f1c0d2edc94016e65bc221b6bb0ad6c # v0.24.3
35 with:
36 path: .
37 format: spdx-json
38 artifact-name: sbom-${{ github.sha }}.spdx.json