chore: trigger isolated Freeze Export build #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Freeze Export AC-flow clean build | |
| on: | |
| push: | |
| branches: | |
| - clean/freeze-export-ac-flow | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-test-clean: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: clean/freeze-export-ac-flow | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.x | |
| - uses: mlugg/setup-zig@v2 | |
| with: | |
| version: 0.16.0 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pre-commit | |
| - name: Apply clean rewrite | |
| run: python .github/freeze_ac_flow_apply.py | |
| - name: Format/check touched source | |
| run: pre-commit run --files apps/predbat/prediction.py apps/predbat/prediction_kernel.cpp apps/predbat/prediction_kernel.py apps/predbat/tests/test_model.py | |
| - name: Build native kernel | |
| run: bash apps/predbat/build_kernel.sh | |
| - name: Cross-build checked-in kernels | |
| run: bash apps/predbat/build_kernel_cross.sh | |
| - name: Run quick unit suite with kernel required | |
| env: | |
| PREDBAT_KERNEL_REQUIRED: "1" | |
| run: | | |
| cd coverage | |
| python3 ../apps/predbat/unit_test.py --quick | |
| - name: Verify x86_64 kernel binary | |
| run: | | |
| cd coverage | |
| python3 ../apps/predbat/verify_kernel_binary.py ../apps/predbat/prediction_kernel_lib_x86_64.so | |
| - name: Remove temporary scaffolding and commit tested tree | |
| run: | | |
| rm -f .github/freeze_ac_flow_apply.py .github/freeze_ac_flow.trigger .github/workflows/freeze-export-ac-flow-clean.yml | |
| git add -A | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git commit -m "fix(prediction): model Freeze Export residual AC flow" | |
| git push origin HEAD:clean/freeze-export-ac-flow |