fixed warning and compilation #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: compilation and test | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build-ubuntu-clang: | |
| name: ubuntu-clang | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Create build directory | |
| run: mkdir build | |
| - name: Configure CMake | |
| run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build | |
| - name: Test | |
| working-directory: ${{github.workspace}}/build | |
| run: ./test | |
| build-macos: | |
| name: macos | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Create build directory | |
| run: mkdir build | |
| - name: Configure CMake | |
| run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build | |
| - name: Test | |
| working-directory: ${{github.workspace}}/build | |
| run: ./test | |
| build-windows: | |
| name: windows | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Create build directory | |
| run: mkdir build | |
| - name: Configure CMake | |
| working-directory: ${{github.workspace}} | |
| run: cmake -S . -B build | |
| - name: Build | |
| working-directory: ${{github.workspace}} | |
| run: cmake --build ${{github.workspace}}/build |