Skip to content

Commit

Permalink
Update msbuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
computergeek1507 authored Aug 2, 2024
1 parent c03462d commit b843562
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,34 @@ on:
branches: [ "master" ]
workflow_dispatch:

env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: LibLTC/LibLTC.sln

# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Release

permissions:
contents: read

jobs:
build:
strategy:
matrix:
configurations: [Debug, Release]
runs-on: windows-latest
env:
SOLUTION_FILE_PATH: LibLTC/LibLTC.sln

BUILD_CONFIGURATION: ${{matrix.configurations}}

steps:
- uses: actions/checkout@v4

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}

- name: Upload LIB
uses: actions/upload-artifact@v4
with:
name: LibLTC_Lib
path: LibLTC/x64/**/*.lib'

0 comments on commit b843562

Please sign in to comment.