feat: arch for GCPolicy #48
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: Cross-Platform PiCo Build | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| name: Build on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Configure CMake (Linux) | |
| if: runner.os == 'Linux' | |
| run: cmake -B build -DCMAKE_BUILD_TYPE=Release | |
| - name: Configure CMake (Windows) | |
| if: runner.os == 'Windows' | |
| run: cmake -B build -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release | |
| - name: Build | |
| run: cmake --build build --config Release | |
| - name: Run Tests (Linux) | |
| if: runner.os == 'Linux' | |
| working-directory: tests | |
| run: | | |
| chmod +x run_tests.sh | |
| ./run_tests.sh | |
| - name: Run Tests (Windows) | |
| if: runner.os == 'Windows' | |
| working-directory: tests | |
| shell: bash | |
| run: ./run_tests.sh |