Skip to content

Update README.md

Update README.md #24

Workflow file for this run

name: macOS Build
on: [push]
env:
QT_VERSION: '5.14.2'
CACHE_VERSION: 2
GEODIFF_VERSION: 1.0.6
INPUT_VERSION: 'master'
TEST_MERGIN_URL: https://test.dev.merginmaps.com/
TEST_API_USERNAME: test_inputapp
TEST_API_PASSWORD: ${{ secrets.MERGINTEST_API_PASSWORD }}
concurrency:
group: ci-${{github.ref}}-macos
cancel-in-progress: true
jobs:
macos_build:
if: ( github.repository == 'MerginMaps/mergin-cpp-client' )
runs-on: macos-latest
steps:
- name: Checkout mergin-cpp-client
uses: actions/checkout@v2
with:
path: mergin-cpp-client
- name: Checkout input
uses: actions/checkout@v2
with:
ref: ${{ env.INPUT_VERSION }}
repository: MerginMaps/input
path: input
- name: Checkout geodiff
uses: actions/checkout@v2
with:
ref: ${{ env.GEODIFF_VERSION }}
repository: MerginMaps/geodiff
path: geodiff
- name: Install Deps
run: |
brew install cmake
brew install sqlite3
- name: Cache Qt
id: cache-qt
uses: pat-s/[email protected]
with:
path: ${{ github.workspace }}/Qt
key: ${{ runner.os }}-QtCache-v1-${{ env.QT_VERSION }}-${{ env.CACHE_VERSION }}
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: ${{ env.QT_VERSION }}
setup-python: 'false'
dir: ${{ github.workspace }}
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: build geodiff
run: |
mkdir -p build-geodiff
cd build-geodiff
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DENABLE_TESTS=FALSE \
-DBUILD_STATIC=ON \
-DBUILD_SHARED=OFF \
-DSQLite3_INCLUDE_DIR=/usr/local/opt/sqlite3/include \
-DSQLite3_LIBRARY=/usr/local/opt/sqlite3/lib/libsqlite3.dylib \
../geodiff/geodiff
make
- name: build mergin-cpp-client
run: |
cp mergin-cpp-client/scripts/ci/config.pri mergin-cpp-client/src/config.pri
mkdir -p build-mergin-cpp-client
cd build-mergin-cpp-client
$Qt5_DIR/bin/qmake \
../mergin-cpp-client/src/client.pro \
CONFIG+=debug
make
- name: run tests
run: |
cd build-mergin-cpp-client/
$(pwd)/../mergin-cpp-client/tests.bash `pwd`/mergin