if: matrix.config.os == 'windows'
run: |
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
+ (Get-Content ~\scoop\buckets\main\bucket\gcc.json).replace('http://repo.msys2.org/', 'http://mirrors.huaweicloud.com/msys2/') | Set-Content ~\scoop\buckets\main\bucket\gcc.json
scoop install gcc --global
echo "BOOST_ROOT=${env:BOOST_ROOT_1_72_0}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
echo "BOOST_INCLUDEDIR=${env:BOOST_ROOT_1_72_0}\boost\include" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append