Skip to content

update SQLite 3 source code amalgamation to version 3.45.1 #67

update SQLite 3 source code amalgamation to version 3.45.1

update SQLite 3 source code amalgamation to version 3.45.1 #67

Workflow file for this run

name: Clang
on: push
jobs:
clang:
runs-on: ubuntu-22.04
strategy:
matrix:
version: [11, 12, 13, 14]
fail-fast: false
steps:
# Checks-out the repository under $GITHUB_WORKSPACE.
- uses: actions/checkout@v4
- name: Install Debian packages
run: |
sudo apt-get update
sudo apt-get install -y catch cmake clang-${{ matrix.version }} libsqlite3-dev pkg-config
- name: Install Clang's standard C++ library
run: |
sudo apt-get install -y libc++-${{ matrix.version }}-dev
if: matrix.version != 11
- name: Build with Clang ${{ matrix.version }}
run: |
export CXX=clang++-${{ matrix.version }}
export CC=clang-${{ matrix.version }}
cd $GITHUB_WORKSPACE
mkdir build
cd build
cmake ../
make -j2
- name: Tests
run: |
cd "$GITHUB_WORKSPACE"/build
ctest -V
- name: Build with Clang ${{ matrix.version }} - no SQLite
run: |
export CXX=clang++-${{ matrix.version }}
export CC=clang-${{ matrix.version }}
cd $GITHUB_WORKSPACE
mkdir build-no-sqlite
cd build-no-sqlite
cmake ../ -DNO_SQLITE=ON
make -j2
- name: Tests - no SQLite
run: |
cd "$GITHUB_WORKSPACE"/build-no-sqlite
ctest -V
- name: Build with Clang ${{ matrix.version }} - static linking
run: |
export CXX=clang++-${{ matrix.version }}
export CC=clang-${{ matrix.version }}
cd $GITHUB_WORKSPACE
./build-static.sh
# Only do static build on latest version in the matrix.
if: matrix.version == 14
- name: Build with Clang ${{ matrix.version }} - bundled SQLite
run: |
export CXX=clang++-${{ matrix.version }}
export CC=clang-${{ matrix.version }}
cd $GITHUB_WORKSPACE
mkdir build-bundled
cd build-bundled
cmake ../ -DUSE_BUNDLED_SQLITE=ON -DENABLE_LTO=ON
make -j2
if: matrix.version == 13
- name: Tests - bundled SQLite
run: |
cd "$GITHUB_WORKSPACE"/build-bundled
ctest -V
if: matrix.version == 13