From 7c415f53c3a1777b193a6d25fb7ad7aee5e22dc0 Mon Sep 17 00:00:00 2001 From: Ben McAvoy Date: Mon, 9 Dec 2024 09:39:07 +0000 Subject: [PATCH] ci: build workflow --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 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 0000000..16b719d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: Build Artifacts + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +env: + SOLUTION_FILE_PATH: . + BUILD_CONFIGURATION: Release + +permissions: + contents: read + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup VCPKG + uses: lukka/run-vcpkg@v11 + + - name: Integrate vcpkg + run: vcpkg integrate install + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Build + working-directory: ${{env.GITHUB_WORKSPACE}} + run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: CarbonLauncher_${{env.BUILD_CONFIGURATION}} + path: | + x64\${{env.BUILD_CONFIGURATION}}\