From 05a158db7abf1c31f7fd82b593a53e2d09e24625 Mon Sep 17 00:00:00 2001 From: Dorian Kostecki Date: Wed, 3 Jan 2024 20:23:00 +0100 Subject: [PATCH 1/2] Setup CI --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7cf4534 --- /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: true + + - 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 From 82ed5844ad71bcfb3c34ef82bead589bab66576d Mon Sep 17 00:00:00 2001 From: Dorian Kostecki Date: Wed, 3 Jan 2024 20:32:56 +0100 Subject: [PATCH 2/2] Checkout submodules recursively --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cf4534..2825a0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - submodules: true + submodules: 'recursive' - name: Install .NET uses: actions/setup-dotnet@v3