Merge branch 'main' into f/special_value_types #184
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: linux-cxx20-conan | |
| on: [push, pull_request] | |
| 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 |