From fefc0ee9f94df858afa87c2db45f66cd767f2170 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Sat, 22 Apr 2023 01:31:55 +0800 Subject: [PATCH] Test setup with system deps in macOS workflow --- .github/workflows/macos.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 1a267aa8..3454209b 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -30,11 +30,18 @@ jobs: -D OPENSSL_ROOT_DIR=/usr/local/opt/openssl/ SSL_INSTALL: openssl + - build: dependencies_SYSTEM + DEPENDENCIES_INSTALL: abseil cityhash lz4 + DEPENDENCIES_CMAKE_OPTIONS: >- + -D WITH_SYSTEM_LZ4=ON + -D WITH_SYSTEM_ABSEIL=ON + -D WITH_SYSTEM_CITYHASH=ON + steps: - uses: actions/checkout@v2 - name: Install dependencies - run: brew install cmake ${{matrix.SSL_INSTALL}} + run: brew install cmake ${{matrix.SSL_INSTALL}} ${{matrix.DEPENDENCIES_INSTALL}} - name: Configure CMake run: | @@ -42,6 +49,7 @@ jobs: -D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ -D BUILD_TESTS=ON \ ${{matrix.SSL_CMAKE_OPTION}} \ + ${{matrix.DEPENDENCIES_CMAKE_OPTIONS}} \ -S ${{github.workspace}} \ -B ${{github.workspace}}/build