ci(windows): config and build before publish step (#19416)

Problem: Windows package step failed (silently).
Solution: Make sure to configure cmake before attempting to build the package target.
This commit is contained in:
kylo252 2022-07-18 15:18:15 +02:00 committed by GitHub
parent 1b462705d0
commit d15a66d803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -127,7 +127,7 @@ jobs:
env: env:
DEPS_BUILD_DIR: ${{ format('{0}/nvim-deps', github.workspace) }} DEPS_BUILD_DIR: ${{ format('{0}/nvim-deps', github.workspace) }}
DEPS_PREFIX: ${{ format('{0}/nvim-deps/usr', github.workspace) }} DEPS_PREFIX: ${{ format('{0}/nvim-deps/usr', github.workspace) }}
CONFIGURATION: ${{ matrix.config }} CMAKE_BUILD_TYPE: "RelWithDebInfo"
strategy: strategy:
matrix: matrix:
include: include:
@ -138,7 +138,10 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- run: powershell ci\build.ps1 -Package - name: Build deps
run: .\ci\build.ps1 -BuildDeps
- name: build package
run: .\ci\build.ps1 -Package
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: ${{ matrix.archive }} name: ${{ matrix.archive }}

View File

@ -134,7 +134,8 @@ function TestOld {
function Package { function Package {
cmake --build $buildDir --target package cmake -S $projectDir -B $buildDir $(convertToCmakeArgs($nvimCmakeVars)) -G Ninja; exitIfFailed
cmake --build $buildDir --target package; exitIfFailed
} }
if ($PSCmdlet.ParameterSetName) { if ($PSCmdlet.ParameterSetName) {