Skip to content

feat: basic app

feat: basic app #79

Workflow file for this run

name: Build Artifacts
on:
push:
branches:
- v2
workflow_dispatch:
env:
SOLUTION_FILE_PATH: .
BUILD_CONFIGURATION: Release
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup VCPKG
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: aafb8b71554a4590aa5108bdb5005d81d72db6c1
- name: Integrate vcpkg
run: vcpkg integrate install
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- 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}}\
- name: Create ZIP of Artifacts
if: startsWith(github.ref, 'refs/tags/')
run: |
$zipPath = "release\artifacts.zip"
$files = Get-ChildItem -Path "x64\${{env.BUILD_CONFIGURATION}}" -Filter *.dll -Recurse
$files += "x64\${{env.BUILD_CONFIGURATION}}\CarbonLauncher.exe"
if (!(Test-Path -Path "release")) { New-Item -ItemType Directory -Path "release" }
Compress-Archive -Path $files -DestinationPath $zipPath
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/[email protected]
with:
artifacts: release\artifacts.zip
draft: true
makeLatest: true