mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-08-27 02:30:33 +01:00
[gha] build boost instead of installing
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
ff50daf003
commit
ae9668312e
1 changed files with 17 additions and 6 deletions
23
.github/workflows/build-windows-msvc.yml
vendored
23
.github/workflows/build-windows-msvc.yml
vendored
|
@ -19,11 +19,21 @@ jobs:
|
||||||
- name: Build and install zlib
|
- name: Build and install zlib
|
||||||
run: powershell -Command "(Invoke-WebRequest -Uri https://git.io/JnHTY -OutFile install_zlib.bat)"; ./install_zlib.bat; del install_zlib.bat
|
run: powershell -Command "(Invoke-WebRequest -Uri https://git.io/JnHTY -OutFile install_zlib.bat)"; ./install_zlib.bat; del install_zlib.bat
|
||||||
|
|
||||||
- name: Install Boost
|
- name: Cache Boost
|
||||||
run: |
|
uses: actions/cache@v2
|
||||||
$Url = "https://sourceforge.net/projects/boost/files/boost-binaries/1.81.0/boost_1_81_0-msvc-14.2-64.exe"
|
with:
|
||||||
(New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\boost.exe")
|
path: '${{ runner.workspace }}/boost_*.tar.gz'
|
||||||
Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=C:\hostedtoolcache\windows\Boost\1.81.0"
|
key: 'boost-1.81.0'
|
||||||
|
|
||||||
|
- name: Build Boost
|
||||||
|
id: boost
|
||||||
|
uses: egor-tensin/build-boost@v1
|
||||||
|
with:
|
||||||
|
version: 1.81.0
|
||||||
|
libraries: date_time filesystem program_options system
|
||||||
|
static: 1
|
||||||
|
platform: x64
|
||||||
|
configuration: Debug
|
||||||
|
|
||||||
- name: Install OpenSSL
|
- name: Install OpenSSL
|
||||||
run: |
|
run: |
|
||||||
|
@ -38,7 +48,8 @@ jobs:
|
||||||
cmake --build . --config Debug -- -m
|
cmake --build . --config Debug -- -m
|
||||||
env:
|
env:
|
||||||
OPENSSL_ROOT_DIR: C:\hostedtoolcache\windows\OpenSSL\1.1.1t
|
OPENSSL_ROOT_DIR: C:\hostedtoolcache\windows\OpenSSL\1.1.1t
|
||||||
BOOST_ROOT: C:\hostedtoolcache\windows\Boost\1.81.0
|
BOOST_ROOT: ${{ steps.boost.outputs.root }}
|
||||||
|
BOOST_LIBRARYDIR: ${{ steps.boost.outputs.librarydir }}
|
||||||
WITH_STATIC: ON
|
WITH_STATIC: ON
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue