Skip to content

Commit

Permalink
ci: build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMcAvoy committed Dec 9, 2024
1 parent fde73b7 commit 7c415f5
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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}}\

0 comments on commit 7c415f5

Please sign in to comment.