Test: Fix 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: CI - Compile on Macos, Windows and Linux | |
| on: | |
| push: | |
| branches: [ main, dev, feature/add-workflow-ci ] | |
| pull_request: | |
| branches: [ main, dev, feature/add-workflow-ci ] | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential cmake | |
| - name: Configure CMake | |
| run: | | |
| mkdir -p build | |
| cd build | |
| cmake .. | |
| - name: Build | |
| run: | | |
| cd build | |
| cmake --build . | |
| - name: Run tests | |
| run: | | |
| cd build | |
| ctest --output-on-failure | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup CMake | |
| uses: jwlawson/[email protected] | |
| - name: Configure CMake | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake .. | |
| - name: Build | |
| run: | | |
| cd build | |
| cmake --build . --config Release | |
| - name: Run tests | |
| run: | | |
| cd build | |
| ctest -C Release --output-on-failure | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| brew install cmake | |
| - name: Configure CMake | |
| run: | | |
| mkdir -p build | |
| cd build | |
| cmake .. | |
| - name: Build | |
| run: | | |
| cd build | |
| cmake --build . | |
| - name: Run tests | |
| run: | | |
| cd build | |
| ctest --output-on-failure |