Skip to content

Commit 9297bcf

Browse files
committed
💚 fix: build and release
1 parent 6792edb commit 9297bcf

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/build-and-release.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ jobs:
1717
- os: windows-latest
1818
install: |
1919
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
2322
- os: fedora-latest
2423
install: sudo dnf install -y clang boost-devel
2524
- os: centos-latest
@@ -33,13 +32,19 @@ jobs:
3332
if: matrix.os == 'windows-latest'
3433
uses: egor-tensin/setup-clang@v1
3534

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+
3641
- name: Install dependencies
3742
run: ${{ matrix.install }}
3843

3944
- name: Build project
4045
run: |
4146
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
4348
else
4449
clang++ -o cmr_cache main.cpp -I./vendor/yaml -lboost_system -lpthread -std=c++17 -O3
4550
fi

0 commit comments

Comments
 (0)