Skip to content

Update build.yml

Update build.yml #7

Workflow file for this run

name: Build Installer
on:
push:
branches:
- main
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true # Enable unsecure command execution
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install MSVC
uses: microsoft/setup-msbuild@v1.0.0
- name: Download and install Vcpkg
run: |
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg.exe integrate install
working-directory: ${{ github.workspace }}
- name: Install Vcpkg dependencies
run: |
${{ github.workspace }}/vcpkg/vcpkg.exe install nlohmann-json:x86-windows
- name: Install DirectX SDK
run: |
choco install -y directx-sdk-june-2010
shell: cmd
- name: Build Installer
run: |
msbuild /p:Configuration=Release /p:Platform=x86 /m installer.sln
working-directory: ${{ github.workspace }}
- name: Set MSBuild path
run: |
echo "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin" >> $GITHUB_PATH
shell: cmd