Skip to content

Merge pull request #93 from snowplow/feat/ai-claude #12

Merge pull request #93 from snowplow/feat/ai-claude

Merge pull request #93 from snowplow/feat/ai-claude #12

Workflow file for this run

name: Install
on:
push:
workflow_dispatch:
jobs:
install-matrix:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
build_shared_libs: [0, 1]
system_curl_uuid: ["False"]
external_sqlite: [1]
include:
# Extra Linux jobs for using system curl/libuuid
- os: ubuntu-latest
build_shared_libs: 0
system_curl_uuid: "True"
external_sqlite: 1
- os: ubuntu-latest
build_shared_libs: 1
system_curl_uuid: "True"
external_sqlite: 1
# Extra jobs to test installer with SQLite3 compiled into Snowplow
- os: macos-latest
build_shared_libs: 1
system_curl_uuid: "False"
external_sqlite: 0
- os: windows-latest
build_shared_libs: 1
system_curl_uuid: "False"
external_sqlite: 0
- os: ubuntu-latest
build_shared_libs: 1
system_curl_uuid: "False"
external_sqlite: 0
runs-on: ${{ matrix.os }}
steps:
- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
- name: Checkout
uses: actions/checkout@v3
- name: Install Snowplow dependencies with apt-get
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev uuid-dev
if: matrix.system_curl_uuid == 'True'
- name: Create Conan default profile
run: conan profile detect
- name: Install Snowplow dependencies with Conan
run: conan install examples -b missing -of i/cmake -pr:b=default -pr:h=default -s build_type=Debug -g=CMakeDeps -o system_curl_uuid=${{ matrix.system_curl_uuid }}
- name: Build and install Snowplow
run: |
cmake -S . -B b1 -DCMAKE_INSTALL_PREFIX=i -DCMAKE_BUILD_TYPE=Debug -DSNOWPLOW_USE_EXTERNAL_JSON=1 -DSNOWPLOW_USE_EXTERNAL_SQLITE=${{ matrix.external_sqlite }} -DSNOWPLOW_BUILD_TESTS=0 -DSNOWPLOW_BUILD_EXAMPLE=0 -DSNOWPLOW_BUILD_PERFORMANCE=0 -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=1 -DBUILD_SHARED_LIBS=${{ matrix.build_shared_libs }}
cmake --build b1 --target install --config Debug
- name: Build the test project
run: |
cmake -S examples -B b2 -DCMAKE_INSTALL_PREFIX=i -DCMAKE_BUILD_TYPE=Debug -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=1
cmake --build b2 --config Debug