diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2825a0f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: [push, pull_request] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + strategy: + matrix: + configuration: [Debug, Release] + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: Install .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + + - name: Install MSBuild + uses: microsoft/setup-msbuild@v1 + + - name: Configure + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.configuration}} + + - name: Build + run: cmake --build ${{github.workspace}}/build