omega-blas
aien-dev/omega-blas
Brought by drakestapleton
omega-blas / .github / workflows / gates.yml
| 1 | # Gates: build libomegablas.so from om/blas.om with the pinned compilers and omega-bridge (PINS), |
| 2 | # then run tests/smoke.py as the README does. Both compilers are born from the seed on this runner: |
| 3 | # OMC (OM-1) at omega-mv e17039d9c and OMC2 (OM-2) at omega-mv e5b32567; omega-bridge tools/native |
| 4 | # refuses either one if its sha256 differs from its pin. Host evidence on a GitHub arm64 runner; the |
| 5 | # GB10 path (GB10=1) and the netlib drivers are not run here. |
| 6 | name: gates |
| 7 | on: |
| 8 | pull_request: |
| 9 | push: |
| 10 | branches: [main] |
| 11 | permissions: |
| 12 | contents: read |
| 13 | jobs: |
| 14 | gates: |
| 15 | runs-on: ubuntu-24.04-arm |
| 16 | timeout-minutes: 30 |
| 17 | steps: |
| 18 | - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 |
| 19 | with: |
| 20 | persist-credentials: false |
| 21 | - name: OM-2 omc from the seed (omega-mv e5b32567) |
| 22 | run: | |
| 23 | git clone --quiet --filter=blob:none https://github.com/aien-dev/omega-mv.git ../omega-mv |
| 24 | git -C ../omega-mv checkout --quiet --detach e5b32567a7aff3ce594e3254a622a846a6cd190b |
| 25 | cd ../omega-mv && sh seed/omega-from-seed.sh |
| 26 | sha256sum seed/out/omc |
| 27 | - name: OM-1 omc from the seed (omega-mv e17039d9c) |
| 28 | run: | |
| 29 | git clone --quiet --filter=blob:none https://github.com/aien-dev/omega-mv.git ../omega-mv-om1 |
| 30 | git -C ../omega-mv-om1 checkout --quiet --detach e17039d9ceeb30e0637ef4145e37afc5821c3773 |
| 31 | cd ../omega-mv-om1 && sh seed/omega-from-seed.sh |
| 32 | sha256sum seed/out/omc |
| 33 | - name: omega-bridge (2b59387) |
| 34 | run: | |
| 35 | git clone --quiet --filter=blob:none https://github.com/aien-dev/omega-bridge.git ../omega-bridge |
| 36 | git -C ../omega-bridge fetch --quiet origin 2b59387101db52b7f859b6a3f6593fdd6b4e4a7e |
| 37 | git -C ../omega-bridge checkout --quiet --detach 2b59387101db52b7f859b6a3f6593fdd6b4e4a7e |
| 38 | - name: build |
| 39 | run: | |
| 40 | D="$(cd .. && pwd)" |
| 41 | make BRIDGE="$D/omega-bridge" OMC="$D/omega-mv-om1/seed/out/omc" OMC2="$D/omega-mv/seed/out/omc" |
| 42 | - name: numpy |
| 43 | run: | |
| 44 | python3 -m venv ../venv |
| 45 | ../venv/bin/pip install --quiet numpy==2.5.4 |
| 46 | - name: smoke |
| 47 | run: ../venv/bin/python tests/smoke.py |