From ccb23038ad8d5dd065d492a262de8240687b2a24 Mon Sep 17 00:00:00 2001 From: Oskari Timperi <808235+oskaritimperi@users.noreply.github.com> Date: Thu, 15 Sep 2022 22:18:50 +0300 Subject: Add github actions workflow --- .github/workflows/cmake.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/cmake.yml diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 0000000..d8ed318 --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,30 @@ +name: CMake + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v3 + + - name: Configure CMake (Windows) + run: cmake -B ${{github.workspace}}/build -G "Visual Studio 17 2022" -A x64 + if: runner.os == 'Windows' + + - name: Configure CMake (non-Windows) + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release + if: runner.os != 'Windows' + + - name: Build + # Build your program with the given configuration + run: cmake --build ${{github.workspace}}/build --config Release -- cgit v1.2.3