Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/hive-view/blob/main/.github/workflows/gate-arm64.yml # hive-view aien-dev/hive-view Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `hive-view / .github / workflows / gate-arm64.yml` 70 lines ยท 3642 bytes Raw Blame History 1 # gate-arm64: build hive-view and its gate with the pinned omc on a GitHub-hosted ARM64 machine, 2 # check the binaries match build.json byte for byte, then run the 56-check gate against a live 3 # server (127.0.0.1 only) with a real tmux. The steps below are glue around the Omega programs; 4 # every check lives in tests/gate.om. 5 name: gate-arm64 6 on: 7 pull_request: 8 push: 9 branches: [main] 10 permissions: 11 contents: read 12 jobs: 13 gate: 14 runs-on: ubuntu-24.04-arm 15 timeout-minutes: 20 16 steps: 17 - uses: actions/checkout@`3d3c42e5aac5ba805825da76410c181273ba90b1` # v7.0.1 18 - name: omega-mv at omega-mv.lock 19 run: | 20 sha=$(awk 'NF && $1 !~ /^#/ {print $1; exit}' omega-mv.lock) 21 git clone --quiet --filter=blob:none https://github.com/aien-dev/omega-mv.git ../omega-mv 22 git -C ../omega-mv checkout --quiet --detach "$sha" 23 want=$(awk 'NF && $1 !~ /^#/ {print $2; exit}' omega-mv.lock) 24 got=$(sha256sum < ../omega-mv/seed/out/omc | cut -c1-64) 25 echo "omc sha256 $got"; test "$got" = "$want" 26 - name: tmux 27 run: sudo apt-get install -y -q tmux >/dev/null && tmux -V && uname -a && nproc 28 - name: build server and gate 29 run: | 30 O=../omega-mv 31 { printf 'om2\n'; cat $O/seed/net/http.om $O/seed/net/notls.om $O/om/tls/sha2.om \ 32 src/util.om src/run.om src/poll.om src/web.om src/page.om src/route.om src/main.om; } \ 33 | $O/seed/out/omc > server && chmod +x server 34 { printf 'om2\n'; cat $O/seed/net/http.om $O/seed/net/notls.om $O/om/tls/sha2.om \ 35 src/util.om src/run.om tests/gate.om; } \ 36 | $O/seed/out/omc > gate && chmod +x gate 37 sha256sum server gate 38 for b in server gate; do 39 want=$(grep -A3 "\"$b\"" build.json | sed -n 's/.*"binary_sha256": "\([0-9a-f]*\)".*/\1/p') 40 got=$(sha256sum < $b | cut -c1-64) 41 echo "$b build.json $want built $got"; test "$got" = "$want" 42 done 43 - name: gate nolog (no ~/.local/state/hive-view yet, so a send must be refused with code 8) 44 run: | 45 ./server mktoken 46 test ! -e ~/.local/state/hive-view 47 mkdir -p "$RUNNER_TEMP/hv-run" 48 (cd web && exec ../server serve "$RUNNER_TEMP/hv-run" 18190 127.0.0.1 > "$RUNNER_TEMP/server-nolog.log" 2>&1) & 49 for i in $(seq 50); do curl -fs http://127.0.0.1:18190/health && break; sleep 0.2; done 50 ./gate nolog 18190 51 pkill -f 'server serve' && sleep 1 52 - name: gate nolog (sends.log is /dev/full, so the attempt line cannot be written; code 8) 53 run: | 54 install -d -m 700 ~/.local/state/hive-view 55 ln -s /dev/full ~/.local/state/hive-view/sends.log 56 (cd web && exec ../server serve "$RUNNER_TEMP/hv-run" 18190 127.0.0.1 > "$RUNNER_TEMP/server-full.log" 2>&1) & 57 for i in $(seq 50); do curl -fs http://127.0.0.1:18190/health && break; sleep 0.2; done 58 ./gate nolog 18190 59 pkill -f 'server serve' && sleep 1 60 rm ~/.local/state/hive-view/sends.log 61 - name: start the server (state directory created as the README install does) 62 run: | 63 install -d -m 700 ~/.local/state/hive-view 64 (cd web && exec nohup ../server serve "$RUNNER_TEMP/hv-run" 18190 127.0.0.1 > "$RUNNER_TEMP/server.log" 2>&1) & 65 for i in $(seq 50); do curl -fs http://127.0.0.1:18190/health && break; sleep 0.2; done 66 - name: gate 67 run: ./gate run 18190 68 - name: stop 69 if: always() 70 run: pkill -f 'server serve' || true; cat "$RUNNER_TEMP"/server*.log || true