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 / translation-g1-arm64.yml
| 1 | # translation-g1-arm64: independent ARM64 rerun of `make -f mk/translation.mk test-translation-g1` (#624 G1, |
| 2 | # spec/universal/translation-v1.md) on a GitHub-hosted ubuntu-24.04-arm machine, not the Spark. It births |
| 3 | # both pinned Omega compilers from source on that machine (omc 734f0a39 from the omega-mv seed at a pinned |
| 4 | # commit; the importer/codec compiler 191b776e from aien-dev/omega-bridge 0fc7d866) and runs the C import, |
| 5 | # codec, lowering, C export and independent validation gates. Advisory: GitHub gates no merge. |
| 6 | name: translation-g1-arm64 |
| 7 | on: |
| 8 | push: |
| 9 | branches: ["universal/624-*"] |
| 10 | pull_request: |
| 11 | paths: ["spec/universal/**", "src/adapters/**", "src/source-aware/**", "tools/adapters/**", "tools/source-aware/**", "tests/universal/**", "mk/translation*.mk", "mk/lower.mk", "mk/c-u64-*.mk", "mk/source-aware.mk", ".github/workflows/translation-g1-arm64.yml"] |
| 12 | permissions: |
| 13 | contents: read |
| 14 | jobs: |
| 15 | g1: |
| 16 | runs-on: ubuntu-24.04-arm |
| 17 | timeout-minutes: 45 |
| 18 | steps: |
| 19 | - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 20 | with: |
| 21 | fetch-depth: 0 |
| 22 | - name: aien-dev/omega-bridge (seed 0fc7d866 for the importer compiler, native.om 012860db for bindings) |
| 23 | run: | |
| 24 | git clone --quiet https://github.com/aien-dev/omega-bridge.git ../omega-bridge |
| 25 | git -C ../omega-bridge cat-file -e 0fc7d8662cb799e7c206b17c18ea4c3ec2b8fea9^{commit} |
| 26 | git -C ../omega-bridge cat-file -e 012860dbf26ee62a9838594b9dfd1e3e94a540a9^{commit} |
| 27 | - name: Go 1.27.3 and Zig 0.17.0 oracles (sha256 checked against the official release indexes) |
| 28 | run: | |
| 29 | mkdir -p ../toolchains && cd ../toolchains |
| 30 | python3 - <<'EOF' |
| 31 | import hashlib, json, urllib.request |
| 32 | 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] |
| 33 | f = [x for x in go['files'] if x['os'] == 'linux' and x['arch'] == 'arm64' and x['kind'] == 'archive'][0] |
| 34 | d = urllib.request.urlopen('https://go.dev/dl/' + f['filename']).read(); assert hashlib.sha256(d).hexdigest() == f['sha256'] |
| 35 | open('go.tgz', 'wb').write(d) |
| 36 | z = json.load(urllib.request.urlopen('https://ziglang.org/download/index.json'))['0.17.0']['aarch64-linux'] |
| 37 | d = urllib.request.urlopen(z['tarball']).read(); assert hashlib.sha256(d).hexdigest() == z['shasum'] |
| 38 | open('zig.txz', 'wb').write(d) |
| 39 | EOF |
| 40 | tar xzf go.tgz && mkdir zig && tar xJf zig.txz -C zig --strip-components=1 |
| 41 | echo "GO=$PWD/go/bin/go" >> "$GITHUB_ENV"; echo "GOFMT=$PWD/go/bin/gofmt" >> "$GITHUB_ENV"; echo "ZIG=$PWD/zig/zig" >> "$GITHUB_ENV" |
| 42 | - name: machine |
| 43 | run: uname -a; nproc; cc --version | head -1; g++ --version | head -1; python3 --version; rustc --version; $GO version; $ZIG version |
| 44 | - name: G1 + G2 + G3 translation gates |
| 45 | run: | |
| 46 | B="$(cd .. && pwd)/omega-bridge" |
| 47 | make -f mk/translation.mk test-translation-g3 SA_SEED_REPO="$B" OMEGA_BRIDGE_REPO="$B" GOTOOLCHAIN=local |