Skip to content

Commit

Permalink
Update windows.yml
Browse files Browse the repository at this point in the history
boost update & cache
  • Loading branch information
ColinRitman authored Jan 5, 2025
1 parent f2fb246 commit 63d7b18
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,27 @@ on:
jobs:
build-windows:
name: Windows
runs-on: windows-2019
runs-on: windows-2022
env:
BOOST_ROOT: C:/local/boost_1_72_0
BOOST_ROOT: C:/local/boost_1_83_0
steps:
- uses: actions/checkout@master

- name: Setup msbuild
uses: microsoft/[email protected]

- name: Restore Boost
uses: actions/cache@v3
id: restore-boost
with:
path: ${{env.BOOST_ROOT}}
key: boost_1_83_0-msvc-14.3-64

- name: Install Boost
if: steps.restore-boost.outputs.cache-hit != 'true'
shell: powershell
run: |
echo "${env:BOOST_ROOT}"
$Url = "https://sourceforge.net/projects/boost/files/boost-binaries/1.72.0/boost_1_72_0-msvc-14.2-64.exe"
$Url = "https://sourceforge.net/projects/boost/files/boost-binaries/1.83.0/boost_1_83_0-msvc-14.3-64.exe"
(New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\boost.exe")
Start-Process -Wait -FilePath "$env:TEMP\boost.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=${env:BOOST_ROOT}"
Expand Down

0 comments on commit 63d7b18

Please sign in to comment.