omega-dnn
aien-dev/omega-dnn
Brought by drakestapleton
omega-dnn / .github / workflows / gates.yml
| 1 | # Gates: bind om/dnn.om with the pinned compilers and omega-bridge (PINS), then run the host suite |
| 2 | # and the mutant suite from the README. Both compilers are born from the seed on this runner: OM-2 at |
| 3 | # omega-mv e5b32567 (seed/out/omc), OM-1 at omega-mv e17039d9c, which must equal the |
| 4 | # evidence/SEED-0/omc/omc.elf that tools/build.sh uses; build.sh then refuses either one if its sha256 |
| 5 | # differs from PINS. torch is the CPU wheel. Host evidence on a GitHub arm64 runner; the GB10 tier |
| 6 | # (tests/test_gpu.py) is not run here. |
| 7 | name: gates |
| 8 | on: |
| 9 | pull_request: |
| 10 | push: |
| 11 | branches: [main] |
| 12 | permissions: |
| 13 | contents: read |
| 14 | jobs: |
| 15 | gates: |
| 16 | runs-on: ubuntu-24.04-arm |
| 17 | timeout-minutes: 60 |
| 18 | steps: |
| 19 | - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 |
| 20 | with: |
| 21 | persist-credentials: false |
| 22 | - name: OM-2 omc from the seed (omega-mv e5b32567) |
| 23 | run: | |
| 24 | git clone --quiet --filter=blob:none https://github.com/aien-dev/omega-mv.git ../omega-mv |
| 25 | git -C ../omega-mv checkout --quiet --detach e5b32567a7aff3ce594e3254a622a846a6cd190b |
| 26 | cd ../omega-mv && sh seed/omega-from-seed.sh |
| 27 | sha256sum seed/out/omc |
| 28 | - name: OM-1 omc from the seed (omega-mv e17039d9c) |
| 29 | run: | |
| 30 | git clone --quiet --filter=blob:none https://github.com/aien-dev/omega-mv.git ../omega-mv-om1 |
| 31 | git -C ../omega-mv-om1 checkout --quiet --detach e17039d9ceeb30e0637ef4145e37afc5821c3773 |
| 32 | cd ../omega-mv-om1 && sh seed/omega-from-seed.sh |
| 33 | sha256sum seed/out/omc |
| 34 | - name: OM-1 born from the seed is the omc.elf build.sh uses |
| 35 | run: | |
| 36 | cmp ../omega-mv-om1/seed/out/omc ../omega-mv/evidence/SEED-0/omc/omc.elf |
| 37 | echo "OMEGA_MV=$(cd .. && pwd)/omega-mv" >> "$GITHUB_ENV" |
| 38 | - name: torch (CPU) |
| 39 | run: | |
| 40 | python3 -m venv ../venv |
| 41 | ../venv/bin/pip install --quiet --index-url https://download.pytorch.org/whl/cpu torch==2.15.0 |
| 42 | echo "$(cd .. && pwd)/venv/bin" >> "$GITHUB_PATH" |
| 43 | - name: build |
| 44 | run: sh tools/build.sh |
| 45 | - name: host suite |
| 46 | run: python tests/test_ops.py 200 |
| 47 | - name: mutants |
| 48 | run: python tests/mutants.py |