diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e69de29..c51de0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: build + +on: + push: + branches: [master] + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + name: ${{ matrix.runner }} - ${{ matrix.buildtype }} - ${{ github.event_name }} + runs-on: ${{ matrix.runner }} + strategy: + matrix: + runner: [ubuntu-latest, ubuntu-24.04-arm, macos-15-intel, macos-latest, windows-latest, windows-11-arm] + buildtype: [debug, release] + steps: + - uses: actions/checkout@v2 + - name: Create Build Environment + run: cmake -E make_directory ${{runner.workspace}}/build + + - name: Configure CMake + shell: bash + working-directory: ${{runner.workspace}}/build + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.buildtype}} + + - name: Build + working-directory: ${{runner.workspace}}/build + # Execute the build. You can specify a specific target with "--target " + run: | + cmake --build . --config ${{matrix.buildtype}}