From 5c1a8ae0833540ac95b92b898ff521ae3f1e84f8 Mon Sep 17 00:00:00 2001 From: Edu Garcia <28616+Arcnor@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:09:30 +0100 Subject: [PATCH] enable CI for building --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..b026a09a0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Descent 3 Build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + strategy: + fail-fast: false + + matrix: + os: [windows-latest] + build_type: [Debug, Release] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build -A "Win32" + + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} + + - name: 'Upload Artifacts' + uses: actions/upload-artifact@v4 + with: + name: build_${{matrix.build_type}} + path: ${{github.workspace}}/build/Descent3/${{matrix.build_type}}