refactor: extract zig-physics to separate repository #1
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: SIMD Benchmark | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - 'src/hslm/simd_bench.zig' | |
| - 'src/hslm/f16_utils.zig' | |
| - 'src/hslm/simd_config.zig' | |
| - '.github/workflows/simd-bench.yml' | |
| jobs: | |
| benchmark: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Zig and Run Benchmarks | |
| run: | | |
| wget https://ziglang.org/download/0.15.2/zig-linux-x86_64-0.15.2.tar.xz || \ | |
| wget https://ziglang.org/download/0.15.2/zig-0.15.2.tar.xz | |
| tar -xf zig-*.tar.xz | |
| mv zig-linux-x86_64-0.15.2 zig || mv zig-0.15.2 zig | |
| export PATH="$PWD/zig:$PATH" | |
| zig test src/hslm/simd_bench.zig 2>&1 | tee benchmark.txt | |
| - name: Upload Results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: benchmark-results | |
| path: benchmark.txt |