Split build and install
This commit is contained in:
parent
1d47e11da9
commit
e45d8d0efd
2 changed files with 9 additions and 3 deletions
9
.github/workflows/nuget.yml
vendored
9
.github/workflows/nuget.yml
vendored
|
|
@ -31,7 +31,7 @@ jobs:
|
||||||
nuget install Bison -Version 3.7.4 -OutputDirectory C:\Tools\bison
|
nuget install Bison -Version 3.7.4 -OutputDirectory C:\Tools\bison
|
||||||
nuget install PCRE2 -Version 10.39 -OutputDirectory C:\Tools\pcre2
|
nuget install PCRE2 -Version 10.39 -OutputDirectory C:\Tools\pcre2
|
||||||
|
|
||||||
- name: Build and Install
|
- name: Build
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$env:PATH="C:\Tools\CMake\CMake-win64.3.15.5\bin;C:\Tools\bison\Bison.3.7.4\bin;" + $env:PATH
|
$env:PATH="C:\Tools\CMake\CMake-win64.3.15.5\bin;C:\Tools\bison\Bison.3.7.4\bin;" + $env:PATH
|
||||||
|
|
@ -45,7 +45,12 @@ jobs:
|
||||||
-DPCRE2_INCLUDE_DIR="$PCRE_ROOT/include" `
|
-DPCRE2_INCLUDE_DIR="$PCRE_ROOT/include" `
|
||||||
-DPCRE2_LIBRARY="$PCRE_ROOT/lib/pcre2-8-static.lib" `
|
-DPCRE2_LIBRARY="$PCRE_ROOT/lib/pcre2-8-static.lib" `
|
||||||
-S . -B build
|
-S . -B build
|
||||||
cmake --build build --config Release --target install
|
cmake --build build --config Release
|
||||||
|
|
||||||
|
- name: Install
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
cmake --install build --config Release
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
|
||||||
|
|
@ -282,7 +282,8 @@ cmake -G "Visual Studio 16 2019" -A "x64" `
|
||||||
-DPCRE2_LIBRARY="$PCRE_ROOT/lib/pcre2-8-static.lib" `
|
-DPCRE2_LIBRARY="$PCRE_ROOT/lib/pcre2-8-static.lib" `
|
||||||
-S . -B build
|
-S . -B build
|
||||||
|
|
||||||
cmake --build build --config Release --target install
|
cmake --build build --config Release
|
||||||
|
cmake --install build --config Release
|
||||||
|
|
||||||
# to test the exe built correctly
|
# to test the exe built correctly
|
||||||
cd install2/bin
|
cd install2/bin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue