Skip to content

Commit

Permalink
Conan --> Vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
nlogozzo committed Jan 5, 2024
1 parent fccee5e commit 0fe887f
Show file tree
Hide file tree
Showing 12 changed files with 260,150 additions and 148 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:
env:
BUILD_TYPE: Release
GITHUB_ACTIONS: true
VCPKG_ROOT: ${{github.workspace}}/vcpkg
jobs:
build:
name: ${{ matrix.config.name }}
Expand Down Expand Up @@ -41,21 +42,19 @@ jobs:
sudo apt-get install gettext tzdata locales -y
sudo locale-gen en_US.UTF-8
sudo update-locale LANG=en_US.UTF-8
- name: "Get Conan"
uses: turtlebrowser/get-conan@main
- name: "Setup Conan Settings"
run: |
mv conan/conansettings.yml settings_user.yml
conan config install settings_user.yml
- name: "Install Conan"
run: |
mv conan/conanfile.py conanfile.py
mv conan/conanprofile-linux.txt conanprofile.txt
conan install conanfile.py --profile:host=conanprofile.txt --profile:build=conanprofile.txt -s compiler.cppstd=20 --build=missing
- name: "Vcpkg"
uses: johnwason/vcpkg-action@v5
id: vcpkg
with:
pkgs: boost-locale curl gettext gettext-libintl glib gtest jsoncpp libsecret libuuid maddy openssl
triplet: x64-linux
cache-key: ${{ matrix.config.os }}
revision: fc3f61366102c1f0d4547c06d03c523bb18c13a7
token: ${{ secrets.GITHUB_TOKEN }}
- name: "CMake Build"
working-directory: ${{github.workspace}}/build
run: |
cmake .. -DCMAKE_TOOLCHAIN_FILE="${{github.workspace}}/build/Release/generators/conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
cmake --build .
- name: "CMake Install"
working-directory: ${{github.workspace}}/build
Expand All @@ -66,4 +65,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
path: ${{github.workspace}}/install
name: Linux-x64-${{env.BUILD_TYPE}}
name: Linux-x64-${{env.BUILD_TYPE}}
21 changes: 12 additions & 9 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:
env:
BUILD_TYPE: Release
GITHUB_ACTIONS: true
VCPKG_ROOT: ${{github.workspace}}/vcpkg
jobs:
build:
name: ${{ matrix.config.name }}
Expand All @@ -27,17 +28,19 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- name: "Get Conan"
uses: turtlebrowser/get-conan@main
- name: "Install Conan"
run: |
move conan/conanfile.py conanfile.py
move conan/conanprofile-windows.txt conanprofile.txt
conan install conanfile.py --profile:host=conanprofile.txt --profile:build=conanprofile.txt -s compiler.cppstd=20 --build=missing
- name: "Vcpkg"
uses: johnwason/vcpkg-action@v5
id: vcpkg
with:
pkgs: boost-locale curl gettext gettext-libintl gtest jsoncpp maddy openssl
triplet: x64-windows
cache-key: ${{ matrix.config.os }}
revision: fc3f61366102c1f0d4547c06d03c523bb18c13a7
token: ${{ secrets.GITHUB_TOKEN }}
- name: "CMake Build"
working-directory: ${{github.workspace}}/build
run: |
cmake .. -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="${{github.workspace}}/build/generators/conan_toolchain.cmake"
cmake -G "Visual Studio 17 2022" ..
cmake --build . --config ${{env.BUILD_TYPE}}
- name: "CMake Install"
working-directory: ${{github.workspace}}/build
Expand All @@ -48,4 +51,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
path: ${{github.workspace}}/install
name: Windows-x64-${{env.BUILD_TYPE}}
name: Windows-x64-${{env.BUILD_TYPE}}
Loading

0 comments on commit 0fe887f

Please sign in to comment.