mirror of
https://github.com/getml/sqlgen.git
synced 2026-01-06 01:19:58 -06:00
76 lines
2.4 KiB
YAML
76 lines
2.4 KiB
YAML
name: linux-cxx20-conan
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
linux:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- compiler: llvm
|
|
compiler-version: 16
|
|
link: "static"
|
|
- compiler: llvm
|
|
compiler-version: 18
|
|
link: "static"
|
|
- compiler: gcc
|
|
compiler-version: 11
|
|
additional-dep: "g++-11"
|
|
link: "static"
|
|
- compiler: gcc
|
|
compiler-version: 12
|
|
link: "static"
|
|
- compiler: gcc
|
|
compiler-version: 14
|
|
link: "static"
|
|
- compiler: llvm
|
|
compiler-version: 16
|
|
link: "shared"
|
|
- compiler: llvm
|
|
compiler-version: 18
|
|
link: "shared"
|
|
- compiler: gcc
|
|
compiler-version: 11
|
|
additional-dep: "g++-11"
|
|
link: "shared"
|
|
- compiler: gcc
|
|
compiler-version: 12
|
|
link: "shared"
|
|
- compiler: gcc
|
|
compiler-version: 14
|
|
link: "shared"
|
|
name: "${{ github.job }} (${{ matrix.compiler }}-${{ matrix.compiler-version }}-${{ matrix.link }})"
|
|
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
|
|
if [[ "${{ matrix.link }}" == "static" ]]; then
|
|
conan build . --build=missing -s compiler.cppstd=gnu20
|
|
else
|
|
conan build . --build=missing -s compiler.cppstd=gnu20 -o sqlgen/*:with_mysql=True -o */*:shared=True
|
|
fi
|