minor fix #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: main | |
| on: | |
| push: | |
| branches: ["main"] | |
| jobs: | |
| build_win32: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Compile | |
| shell: bash | |
| run: | | |
| python scripts/build_all_versions.py | |
| python scripts/run_benchmarks.py | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows | |
| path: output/results.csv | |
| build_linux: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Clang | |
| uses: egor-tensin/setup-clang@v1 | |
| with: | |
| version: 15 | |
| platform: x64 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Compile | |
| run: | | |
| python scripts/build_all_versions.py | |
| python scripts/run_benchmarks.py | |
| env: | |
| CC: clang | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux | |
| path: output/results.csv | |
| build_darwin: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Compile | |
| run: | | |
| python scripts/build_all_versions.py | |
| python scripts/run_benchmarks.py | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: darwin | |
| path: output/results.csv | |
| merge: | |
| runs-on: ubuntu-latest | |
| needs: [ build_win32, build_linux, build_darwin ] | |
| steps: | |
| - name: "Create output directory" | |
| run: "mkdir $GITHUB_WORKSPACE/output" | |
| - name: "Merge win32" | |
| uses: actions/[email protected] | |
| with: | |
| name: windows | |
| path: $GITHUB_WORKSPACE/output/windows_x86_64 | |
| - name: "Merge linux" | |
| uses: actions/[email protected] | |
| with: | |
| name: linux | |
| path: $GITHUB_WORKSPACE/output/linux_x86_64 | |
| - name: "Merge darwin" | |
| uses: actions/[email protected] | |
| with: | |
| name: darwin | |
| path: $GITHUB_WORKSPACE/output/darwin | |
| - name: "Upload merged artifact" | |
| uses: actions/[email protected] | |
| with: | |
| name: all-in-one | |
| path: $GITHUB_WORKSPACE/output | |