Skip to content

Fixed issue #206

Fixed issue #206 #15

Workflow file for this run

name: CI-SQLCipher
on: [push, pull_request]
jobs:
build-and-test:
name: ${{ matrix.os }} (${{ matrix.configuration }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
configuration: [Debug, Release]
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install OpenSSL on Linux
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev
- name: Install OpenSSL on macOS
if: runner.os == 'macOS'
run: brew install openssl
- name: Install OpenSSL on Windows
if: runner.os == 'Windows'
run: choco install openssl -y
- name: Configure CMake
run: cmake -B${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DENABLE_SQLITE3=ON -DENABLE_SQLITE3_CODEC=ON
- name: Build
run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.configuration }}
- name: Test
working-directory: ${{ github.workspace }}/build
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: ctest -C ${{ matrix.configuration }} -j 1 -V