omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / .github / workflows / om-units-arm64.yml
| 1 | # om-units-arm64: independent ARM64 rerun of tests/gates/run.sh om-units on a GitHub-hosted |
| 2 | # ubuntu-24.04-arm machine (not the Spark). It births omc from the seed hex on that machine, takes the |
| 3 | # binding generator from aien-dev/omega-bridge at om/omega-bridge.lock, regenerates |
| 4 | # src/omega_om_units.c, omega_om_units_fs.c, omega_native.h, omega_api_decl.h and omega_om_units.ident byte for byte, and checks |
| 5 | # SHA-256 and BLAKE3 byte parity against the C they replaced plus the BLAKE3 mutants. Advisory, like AIEN Checks: GitHub gates no merge (Alpha does). |
| 6 | name: om-units-arm64 |
| 7 | on: |
| 8 | pull_request: |
| 9 | paths: ["om/**", "seed/**", "src/sha256.h", "src/omega_api_decl.h", "src/omega_native.h", "src/omega_blake3.*", "src/omega_om_units.*", "src/omega_om_units_fs.c", "mk/omega-gpu-engine.mk", "tests/gates/**", "tools/dagsim/**", "tests/dagsim/**", "src/runtime/rx_costmodel.*", ".github/workflows/om-units-arm64.yml"] |
| 10 | push: |
| 11 | branches: [main] |
| 12 | permissions: |
| 13 | contents: read |
| 14 | jobs: |
| 15 | om-units: |
| 16 | runs-on: ubuntu-24.04-arm |
| 17 | timeout-minutes: 30 |
| 18 | steps: |
| 19 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 20 | with: |
| 21 | fetch-depth: 0 |
| 22 | - name: omega-bridge at om/omega-bridge.lock, as the sibling ../omega-bridge the gate pins from |
| 23 | run: | |
| 24 | sha=$(awk 'NF && $1 !~ /^#/ {print $1; exit}' om/omega-bridge.lock) |
| 25 | git clone --quiet https://github.com/aien-dev/omega-bridge.git ../omega-bridge |
| 26 | git -C ../omega-bridge checkout --quiet --detach "$sha" |
| 27 | - name: machine |
| 28 | run: uname -a; nproc; cc --version | head -1 |
| 29 | - name: gate om-units |
| 30 | run: mkdir -p build && bash tests/gates/run.sh om-units |
| 31 | # #938: the AArch64 link of the offline DAG evaluator through the seeded |
| 32 | # SHA-256 unit src/omega_om_units.c (Makefile DS_SHA_SRC on aarch64). |
| 33 | - name: test-dagsim (offline DAG evaluator, aarch64) |
| 34 | # shell: bash runs `bash -eo pipefail`, so a failing make fails the step through the tee. |
| 35 | shell: bash |
| 36 | run: make test-dagsim 2>&1 | tee build/test-dagsim-aarch64.log |
| 37 | - name: throughput (report only) |
| 38 | run: | |
| 39 | cc -std=gnu11 -O2 -D_GNU_SOURCE -Isrc -c src/omega_om_units.c -o /tmp/new.o |
| 40 | git show a647b6a9821fffcf52ba9ce813f75afa4b84be62:src/sha256.h > /tmp/sha256.h |
| 41 | git show a647b6a9821fffcf52ba9ce813f75afa4b84be62:src/sha256.c \ |
| 42 | | sed 's/sha256_\(init\|update\|final\|hash\|transform\)/orc_sha256_\1/g' > /tmp/oracle.c |
| 43 | cc -O2 -c /tmp/oracle.c -o /tmp/oracle.o |
| 44 | cc -O2 -Isrc om/sha256/parity/bench.c /tmp/new.o /tmp/oracle.o -o /tmp/bench -pthread |
| 45 | /tmp/bench |
| 46 | cc -O2 -Isrc om/sha256/parity/small.c /tmp/new.o /tmp/oracle.o -o /tmp/small -pthread && /tmp/small |