Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkWanderer authored Jul 29, 2021
1 parent a916e41 commit 10aa486
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@ name: Build

on: [push]

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

# 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

jobs:
build:
name: Build with CMake
strategy:
matrix:
architecture: [x64, Win32]
env:
buildDir: '${{ github.workspace }}/build'

Expand All @@ -23,19 +17,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

# - run: 'dir /S /B'
# working-directory: 'C:\Program Files (x86)\Windows Kits'
# shell: cmd

- name: Build
uses: lukka/run-cmake@v3
with:
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
useVcpkgToolchainFile: true
cmakeAppendedArgs: '-G "Visual Studio 16 2019" -A x64 -DHTML_HELP_LIBRARY="C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x86\Htmlhelp.Lib"'
cmakeAppendedArgs: '-G "Visual Studio 16 2019" -A ${{ matrix.architecture }} -DORBITER_MAKE_DOC=OFF -DHTML_HELP_LIBRARY="C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x86\Htmlhelp.Lib"'
buildDirectory: ${{ env.buildDir }}
# Or build multiple configurations out of a CMakeSettings.json file created with Visual Studio.
# cmakeListsOrSettingsJson: CMakeSettingsJson
# cmakeSettingsJsonPath: '${{ github.workspace }}/cmakesettings.json/CMakeSettings.json'
# configurationRegexFilter: '${{ matrix.configuration }}'

0 comments on commit 10aa486

Please sign in to comment.