From bfa297d587cdb90a60e56d779201b5d02f33f44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= Date: Tue, 11 May 2021 08:38:07 +0200 Subject: [PATCH] MacOS build --- .github/workflows/on_push_all.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/on_push_all.yml b/.github/workflows/on_push_all.yml index f14f4ce6..9e95ca81 100644 --- a/.github/workflows/on_push_all.yml +++ b/.github/workflows/on_push_all.yml @@ -85,3 +85,33 @@ jobs: cd build cd bin ./unit_tests + + MacOS: + name: 'MacOS - clang - Arch:x64 BuildType:Release - SHARED' + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + + - name: install dependencies + run: | + pip3 install conan==1.36.0 + + - name: Conan + run: | + mkdir build && cd build + conan profile new --detect default + conan profile show default + conan install .. -o webready=True --build missing + + - name: build and compile + run: | + cd build + cmake -DEXIV2_ENABLE_WEBREADY=ON -DEXIV2_ENABLE_CURL=ON -DEXIV2_BUILD_UNIT_TESTS=ON -DEXIV2_ENABLE_BMFF=ON -DEXIV2_TEAM_WARNINGS_AS_ERRORS=ON -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations" .. + make -j + + - name: Unit Test + run: | + cd build + cd bin + ./unit_tests