Fixing build for windows. #10
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: build | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "*" ] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-14, ubuntu-24.04-arm, macos-15-intel, windows-2022] | |
| build_type: [Release] | |
| steps: | |
| - uses: actions/checkout@v4.1.1 | |
| # install dependencies | |
| - name: Configure CMake for linux | |
| if: contains(matrix.os, 'ubuntu') | |
| run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTING=ON -DBUILD_SHARED_LIBS=OFF | |
| - name: Configure CMake for non-linux | |
| if: contains(matrix.os, 'macos') || contains(matrix.os, 'windows') | |
| run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTING=OFF -DBUILD_SHARED_LIBS=OFF | |
| - name: Build | |
| run: cmake --build . --config ${{ matrix.build_type }} | |
| - name: Test | |
| run: ctest -C ${{ matrix.build_type }} | |
| - name: Upload Artifact - Linux x86_64 | |
| if: contains(matrix.os, 'ubuntu') && !contains(matrix.os, 'arm') | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sbva-linux-amd64 | |
| path: sbva | |
| - name: Upload Artifact - Linux arm64 | |
| if: contains(matrix.os, 'ubuntu') && contains(matrix.os, 'arm') | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sbva-linux-arm64 | |
| path: sbva | |
| - name: Upload Artifact - Mac x86_64 | |
| if: matrix.os == 'macos-15-intel' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sbva-mac-x86_64 | |
| path: sbva | |
| - name: Upload Artifact - Mac arm64 | |
| if: matrix.os == 'macos-14' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sbva-mac-arm64 | |
| path: sbva | |
| - name: Upload Artifact - Windows | |
| if: matrix.os == 'windows-2022' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sbva-win64.exe | |
| path: Release\sbva.exe |