interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

branch main Branches Tags History

omega-bridge / .github / workflows / portable.yml

77 lines · 4184 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2name: Portable bridge behavior
3on:
4 pull_request:
5 push:
6 branches: [main]
7 workflow_dispatch:
8permissions:
9 contents: read
10jobs:
11 portable-behavior:
12 runs-on: ubuntu-24.04-arm
13 timeout-minutes: 40
14 env:
15 OMEGA_SEED: ${{ github.workspace }}/build/bootstrap/omc
16 steps:
17 - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
18 with:
19 persist-credentials: false
20 - name: Source bootstrap and exact seeded oracle
21 run: |
22 OMEGA_SEEDED_OMC="$RUNNER_TEMP/omega-mv/seed/out/omc"
23 echo "OMEGA_SEEDED_OMC=$OMEGA_SEEDED_OMC" >> "$GITHUB_ENV"
24 echo "FREEST_CUDAPP_ROOT=$RUNNER_TEMP/cudapp" >> "$GITHUB_ENV"
25 sh tools/bootstrap.sh
26 git clone -q https://github.com/aien-dev/omega-mv "$RUNNER_TEMP/omega-mv"
27 git -C "$RUNNER_TEMP/omega-mv" checkout -q e5b32567a7aff3ce594e3254a622a846a6cd190b
28 printf '%s %s\n' 2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f "$OMEGA_SEEDED_OMC" | sha256sum --check --strict
29 sh tools/build.sh
30 git clone -q https://github.com/aien-dev/CUDApp "$RUNNER_TEMP/cudapp"
31 git -C "$RUNNER_TEMP/cudapp" checkout -q dbb1b5002fd7d96ff4695b2da4dcb3238db226c2
32 - name: Unchanged baseline behavioral and refusal suites
33 run: sh tools/test.sh
34 - name: Physical x86 receipt checker, seeded Omega gate
35 run: '"$OMEGA_SEEDED_OMC" < tests/native/x86/check_receipt_test.om > "$RUNNER_TEMP/crt" && chmod +x "$RUNNER_TEMP/crt" && mkdir "$RUNNER_TEMP/crtwd" && "$RUNNER_TEMP/crt" "$OMEGA_SEEDED_OMC" "$RUNNER_TEMP/crtwd"'
36 - name: Explicit x86 verification oracle, never a production dependency
37 shell: bash
38 run: |
39 set -euo pipefail
40 sudo apt-get update -qq
41 sudo apt-get install -y gcc-x86-64-linux-gnu
42 package=qemu-user-static_8.2.2+ds-0ubuntu1.19_arm64.deb
43 curl --fail --location --silent --show-error --proto '=https' --tlsv1.2 \
44 "https://ports.ubuntu.com/pool/universe/q/qemu/$package" --output "$RUNNER_TEMP/$package"
45 printf '%s %s\n' f2ab6b2194533169e1fb9afdb697bd5ddc654741f564dc56e4fb3311bc8f290a "$RUNNER_TEMP/$package" | sha256sum --check --strict
46 mkdir -p "$RUNNER_TEMP/qemu-x86"
47 dpkg-deb --fsys-tarfile "$RUNNER_TEMP/$package" | tar -x -C "$RUNNER_TEMP/qemu-x86" ./usr/bin/qemu-x86_64-static
48 printf '%s %s\n' c27c1662c0de66728244d60448a6614b8fc612e18c2e9d270837c071f3fb4e4f "$RUNNER_TEMP/qemu-x86/usr/bin/qemu-x86_64-static" | sha256sum --check --strict
49 sudo install -m755 "$RUNNER_TEMP/qemu-x86/usr/bin/qemu-x86_64-static" /usr/local/bin/qemu-x86_64
50 dpkg-query -W gcc-x86-64-linux-gnu
51 qemu-x86_64 --version
52 sha256sum /usr/local/bin/qemu-x86_64
53 - name: Seeded differential and binary32 refusal controls
54 run: |
55 python3 tests/seeded.py
56 python3 tests/seeded_float.py
57 python3 tests/seeded_views.py
58 python3 tests/seeded_runtime_views.py
59 - name: Device-window evidence directory is created once (CPU only, no GPU, no spark-window)
60 run: |
61 "$OMEGA_SEEDED_OMC" < tests/device-window/race.om > "$RUNNER_TEMP/race"
62 chmod +x "$RUNNER_TEMP/race"
63 "$RUNNER_TEMP/race" tools/run-device-window.sh "$RUNNER_TEMP/race-scratch" 50
64 - name: C ABI library gate (cabi-1); cc, nm, readelf and caller.c are test-only oracles
65 run: |
66 cat tests/cabi/proc.om tests/cabi/gate.om | "$OMEGA_SEEDED_OMC" > build/cabi-gate
67 chmod +x build/cabi-gate
68 build/cabi-gate
69 - name: Actual scalar roots, checked hosted ABI and import-free controls
70 run: python3 tests/freest.py
71 - name: Import-free checked borrowed views, hosted differential and emitter mutants
72 run: python3 tests/freest_views.py
73 - name: EMULATED x86 scalar consumers, explicit user-mode interpreter
74 env:
75 CC: x86_64-linux-gnu-gcc
76 FREEST_RUNNER: qemu-x86_64 -L /usr/x86_64-linux-gnu
77 run: python3 tests/freest.py