mirror of
https://github.com/getml/sqlgen.git
synced 2026-01-08 02:19:32 -06:00
Added support for Conan (#29)
This commit is contained in:
committed by
GitHub
parent
db1b434320
commit
0ad99d983a
50
.github/workflows/linux-cxx20-conan.yaml
vendored
Normal file
50
.github/workflows/linux-cxx20-conan.yaml
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
name: linux-cxx20-conan
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- compiler: llvm
|
||||
compiler-version: 16
|
||||
- compiler: llvm
|
||||
compiler-version: 18
|
||||
- compiler: gcc
|
||||
compiler-version: 11
|
||||
additional-dep: "g++-11"
|
||||
- compiler: gcc
|
||||
compiler-version: 12
|
||||
- compiler: gcc
|
||||
compiler-version: 14
|
||||
name: "${{ github.job }} (${{ matrix.compiler }}-${{ matrix.compiler-version }})"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y ninja-build pipx ${{ matrix.additional-dep }}
|
||||
- name: Install Conan
|
||||
run: |
|
||||
pipx install conan
|
||||
conan profile detect
|
||||
- name: Compile
|
||||
run: |
|
||||
if [[ "${{ matrix.compiler }}" == "llvm" ]]; then
|
||||
export CC=clang-${{ matrix.compiler-version }}
|
||||
export CXX=clang++-${{ matrix.compiler-version }}
|
||||
elif [[ "${{ matrix.compiler }}" == "gcc" ]]; then
|
||||
export CC=gcc-${{ matrix.compiler-version }}
|
||||
export CXX=g++-${{ matrix.compiler-version }}
|
||||
fi
|
||||
sudo ln -s $(which ccache) /usr/local/bin/$CC
|
||||
sudo ln -s $(which ccache) /usr/local/bin/$CXX
|
||||
$CXX --version
|
||||
conan build . --build=missing -s compiler.cppstd=gnu20
|
||||
@@ -1,4 +1,4 @@
|
||||
name: linux-cxx20
|
||||
name: linux-cxx20-vcpkg
|
||||
|
||||
on: [push]
|
||||
|
||||
33
.github/workflows/macos-cxx20-conan.yaml
vendored
Normal file
33
.github/workflows/macos-cxx20-conan.yaml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: macos-cxx20-conan
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
macos-clang:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os: "macos-latest"
|
||||
- os: "macos-13"
|
||||
name: "${{ github.job }} (${{ matrix.os }})"
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
- name: Install dependencies
|
||||
run: brew install ninja pipx
|
||||
- name: Install Conan
|
||||
run: |
|
||||
pipx install conan
|
||||
conan profile detect
|
||||
- name: Compile
|
||||
env:
|
||||
CC: clang
|
||||
CXX: clang++
|
||||
run: |
|
||||
$CXX --version
|
||||
conan build . --build=missing -s compiler.cppstd=gnu20
|
||||
@@ -1,4 +1,4 @@
|
||||
name: macos-cxx20
|
||||
name: macos-cxx20-vcpkg
|
||||
|
||||
on: [push]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: windows-cxx20
|
||||
name: windows-cxx20-vcpkg
|
||||
|
||||
on: [push]
|
||||
|
||||
Reference in New Issue
Block a user