From 10aa48607840d8ca4c0ec16e46f9efe16041c4fe Mon Sep 17 00:00:00 2001 From: "Oleg V. Kozlyuk" Date: Fri, 30 Jul 2021 01:01:15 +0300 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d233943a..9174a620c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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' @@ -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 }}'