babel
aien-dev/babel
Brought by drakestapleton
babel / .github / workflows / ci.yml
| 1 | # babel CI: build the pinned adapters (aien-dev/omega-mv universal/624-g1-integration 2d4c6407) |
| 2 | # on a GitHub-hosted arm64 machine, build babel with the pinned OM-2 omc, and run tests/run.sh |
| 3 | # (six targets, independent cmp of the three legs, the mutated-oracle negative control, lint, JSON). |
| 4 | # Host evidence on a GitHub runner, not Spark/GB10 qualification. |
| 5 | name: babel |
| 6 | on: |
| 7 | push: |
| 8 | branches: [main] |
| 9 | pull_request: |
| 10 | permissions: |
| 11 | contents: read |
| 12 | jobs: |
| 13 | test: |
| 14 | runs-on: ubuntu-24.04-arm |
| 15 | timeout-minutes: 120 |
| 16 | steps: |
| 17 | - uses: actions/checkout@v4 |
| 18 | - name: aien-dev/omega-mv (adapters at 2d4c6407; omc and sha256-om2.om at main 0b77e6ea2) |
| 19 | run: | |
| 20 | git clone --quiet https://github.com/aien-dev/omega-mv.git ../omega-mv |
| 21 | git -C ../omega-mv fetch --quiet origin universal/624-g1-integration |
| 22 | git -C ../omega-mv checkout --quiet 2d4c640702c82b8deb8a296407aadf660dac7fc7 |
| 23 | git -C ../omega-mv cat-file -e 0b77e6ea2^{commit} |
| 24 | git clone --quiet https://github.com/aien-dev/omega-bridge.git ../omega-bridge |
| 25 | - name: Go 1.27.3 and Zig 0.17.0 (sha256 checked against the official release indexes) |
| 26 | run: | |
| 27 | mkdir -p ../toolchains && cd ../toolchains |
| 28 | python3 - <<'EOF' |
| 29 | import hashlib, json, urllib.request |
| 30 | go = [r for r in json.load(urllib.request.urlopen('https://go.dev/dl/?mode=json&include=all')) if r['version'] == 'go1.27.3'][0] |
| 31 | f = [x for x in go['files'] if x['os'] == 'linux' and x['arch'] == 'arm64' and x['kind'] == 'archive'][0] |
| 32 | d = urllib.request.urlopen('https://go.dev/dl/' + f['filename']).read(); assert hashlib.sha256(d).hexdigest() == f['sha256'] |
| 33 | open('go.tgz', 'wb').write(d) |
| 34 | z = json.load(urllib.request.urlopen('https://ziglang.org/download/index.json'))['0.17.0']['aarch64-linux'] |
| 35 | d = urllib.request.urlopen(z['tarball']).read(); assert hashlib.sha256(d).hexdigest() == z['shasum'] |
| 36 | open('zig.txz', 'wb').write(d) |
| 37 | EOF |
| 38 | tar xzf go.tgz && mkdir zig && tar xJf zig.txz -C zig --strip-components=1 |
| 39 | echo "GO=$PWD/go/bin/go" >> "$GITHUB_ENV"; echo "GOFMT=$PWD/go/bin/gofmt" >> "$GITHUB_ENV"; echo "ZIG=$PWD/zig/zig" >> "$GITHUB_ENV" |
| 40 | - name: machine |
| 41 | run: uname -a; nproc; cc --version | head -1; g++ --version | head -1; python3 --version; rustc --version; cargo --version; $GO version; $ZIG version |
| 42 | - name: build the adapters (omega-mv test-translation-g3) |
| 43 | run: | |
| 44 | B="$(cd .. && pwd)/omega-bridge" |
| 45 | cd ../omega-mv && make -f mk/translation.mk test-translation-g3 SA_SEED_REPO="$B" OMEGA_BRIDGE_REPO="$B" GOTOOLCHAIN=local |
| 46 | - name: build babel |
| 47 | run: OMEGA_MV="$(cd .. && pwd)/omega-mv" ./build.sh |
| 48 | - name: tests |
| 49 | run: BABEL_ADAPTERS="$(cd .. && pwd)/omega-mv" tests/run.sh |