Skip to content

Commit

Permalink
💚 fix: build and release
Browse files Browse the repository at this point in the history
  • Loading branch information
camargo2019 committed Sep 10, 2024
1 parent cb11884 commit 6792edb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ jobs:
- os: ubuntu-latest
install: sudo apt-get update && sudo apt-get install -y libboost-all-dev clang
- os: windows-latest
install: choco install llvm boost-msvc
install: |
choco install llvm
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'"
powershell -Command "Start-Process 'boost_installer.exe' -ArgumentList '/S' -Wait"
set PATH=C:\local\boost_1_80_0\lib64-msvc-14.1;%PATH%
- os: fedora-latest
install: sudo dnf install -y clang boost-devel
- os: centos-latest
Expand All @@ -35,7 +39,7 @@ jobs:
- name: Build project
run: |
if [ "${{ matrix.os }}" == "windows-latest" ]; then
clang++ -o cmr_cache.exe main.cpp -I./vendor/yaml -lboost_system -lpthread -std=c++17 -O3
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
else
clang++ -o cmr_cache main.cpp -I./vendor/yaml -lboost_system -lpthread -std=c++17 -O3
fi
Expand Down

0 comments on commit 6792edb

Please sign in to comment.