Skip to content

Commit e5f3c31

Browse files
download 7z Boost archive on Windows instead of exe
1 parent 8b76d0d commit e5f3c31

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ env:
99
THREADS: 4
1010
CONFIG: RelWithDebInfo
1111
BOOST_ROOT: ${{ github.workspace }}/_boost
12+
BOOST_VERSION: 1.74.0
1213
ALPAKA_BRANCH: 0.9.0
1314

1415
jobs:
@@ -30,7 +31,6 @@ jobs:
3031
- uses: actions/checkout@v2
3132
- name: install boost
3233
run: |
33-
BOOST_VERSION=1.74.0
3434
BOOST_ARCHIVE=boost_${BOOST_VERSION//./_}.tar.bz2
3535
wget -q https://boostorg.jfrog.io/artifactory/main/release/$BOOST_VERSION/source/$BOOST_ARCHIVE
3636
tar -xf $BOOST_ARCHIVE
@@ -269,10 +269,10 @@ jobs:
269269
- uses: actions/checkout@v2
270270
- name: install boost
271271
run: |
272-
# From: https://github.com/actions/virtual-environments/issues/2667
273-
$url = "https://sourceforge.net/projects/boost/files/boost-binaries/1.74.0/boost_1_74_0-msvc-14.1-64.exe"
274-
(New-Object System.Net.WebClient).DownloadFile($url, "$env:TEMP\boost.exe")
275-
Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=$env:BOOST_ROOT"
272+
BOOST_ARCHIVE=boost_$($BOOST_VERSION.replace('.'. '_')).7z
273+
$url = "https://boostorg.jfrog.io/artifactory/main/release/$BOOST_VERSION/source/$BOOST_ARCHIVE"
274+
(New-Object System.Net.WebClient).DownloadFile($url, "$env:TEMP\boost.7z")
275+
7z e $env:TEMP\boost.7z -o$env:BOOST_ROOT
276276
- name: vcpkg install dependencies
277277
run: |
278278
vcpkg install catch2 fmt vc tinyobjloader

0 commit comments

Comments
 (0)