File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 17
17
- os : windows-latest
18
18
install : |
19
19
choco install llvm
20
- powershell -Command "Invoke-WebRequest -Uri 'https://boostorg.jfrog.io/artifactory/main/release/1.80.0/binaries/boost_1_80_0-msvc-14.1-64.exe' -OutFile 'boost_installer.exe'"
21
- powershell -Command "Start-Process 'boost_installer.exe' -ArgumentList '/S' -Wait"
22
- set PATH=C:\local\boost_1_80_0\lib64-msvc-14.1;%PATH%
20
+ curl -L -o boost.zip https://storage.cmr.dev.br/boost.zip
21
+ unzip boost.zip -d boost
23
22
- os : fedora-latest
24
23
install : sudo dnf install -y clang boost-devel
25
24
- os : centos-latest
@@ -33,13 +32,19 @@ jobs:
33
32
if : matrix.os == 'windows-latest'
34
33
uses : egor-tensin/setup-clang@v1
35
34
35
+ - name : Set up Boost environment
36
+ if : matrix.os == 'windows-latest'
37
+ run : |
38
+ echo "BOOST_INCLUDE_PATH=$(pwd)/boost/boost" >> $GITHUB_ENV
39
+ echo "BOOST_LIBRARY_PATH=$(pwd)/boost/lib" >> $GITHUB_ENV
40
+
36
41
- name : Install dependencies
37
42
run : ${{ matrix.install }}
38
43
39
44
- name : Build project
40
45
run : |
41
46
if [ "${{ matrix.os }}" == "windows-latest" ]; then
42
- clang++ -o cmr_cache.exe main.cpp -I./vendor/yaml -I"C:/local/boost_1_80_0" -L"C:/local/boost_1_80_0/lib64-msvc-14.1" -lboost_system-vc141 -mt-x64-1_80 -lpthread - std=c++17 -O3
47
+ clang++ -o cmr_cache.exe main.cpp -I./vendor/yaml -I$BOOST_INCLUDE_PATH -L$BOOST_LIBRARY_PATH -llibboost_system-vc143 -mt-x64-1_85 - std=c++17
43
48
else
44
49
clang++ -o cmr_cache main.cpp -I./vendor/yaml -lboost_system -lpthread -std=c++17 -O3
45
50
fi
You can’t perform that action at this time.
0 commit comments