1
0
mirror of https://github.com/Raymonf/whack.git synced 2024-11-27 17:40:48 +01:00

Add galliumhook build workflow

This commit is contained in:
Ray 2022-12-17 22:42:50 -05:00 committed by Raymonf
parent 5bb9028c7d
commit 9a907e01f5
No known key found for this signature in database
GPG Key ID: 438459BF619B037A

50
.github/workflows/galliumhook.yml vendored Normal file
View File

@ -0,0 +1,50 @@
name: galliumhook Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
platform: [x64]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
# Enable MSVC Developer Command Prompt
- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1.12.0
with:
vsversion: "2022"
arch: "amd64"
# Build the library
- name: Build galliumhook
run: msbuild galliumhook\galliumhook.sln /p:Configuration=$env:Configuration /p:Platform=$env:Platform
env:
Configuration: ${{ matrix.configuration }}
Platform: ${{ matrix.platform }}
# Upload the built files
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: galliumhook - ${{ env.Platform }} ${{ env.Configuration }}
path: galliumhook\${{ env.Platform }}\${{ env.Configuration }}
env:
Configuration: ${{ matrix.configuration }}
Platform: ${{ matrix.platform }}