Skip to content

Commit

Permalink
CI: Test linking against the installed library
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Oct 27, 2023
1 parent 8b808bf commit db9c36c
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,10 @@ jobs:
id: conan
uses: turtlebrowser/get-conan@main

- name: Create default profile
run: conan profile detect

- name: Set compiler.cppstd to 17
- name: Create default Conan profile
shell: bash
run: |
conan profile detect
if [[ "$RUNNER_OS" == "macOS" ]]; then sed_i='sed -i ""'; else sed_i='sed -i'; fi
$sed_i 's/compiler.cppstd=.*/compiler.cppstd=17/' "$(conan config home)/profiles/default"
Expand Down Expand Up @@ -157,3 +155,18 @@ jobs:

- name: Inspect
run: tree install/

- name: Test installed library
shell: bash
run: |
# Set up Conan profile
conan profile detect --force
if [[ "$RUNNER_OS" == "macOS" ]]; then sed_i='sed -i ""'; else sed_i='sed -i'; fi
$sed_i 's/compiler.cppstd=.*/compiler.cppstd=17/' "$(conan config home)/profiles/default"
# Install dependencies
rm CMakeUserPresets.json
conan install . -pr default --output-folder=build/test_install --build=missing -s build_type=Release
cp CMakeUserPresets.json test_package/
# Build
cmake -S test_package/ --preset conan-release -DEDIE_ROOT=$(pwd)/install/lib/cmake/EDIE/
cmake --build --preset conan-release --config Release

0 comments on commit db9c36c

Please sign in to comment.