Skip to content

Commit

Permalink
Cache dependencies
Browse files Browse the repository at this point in the history
WE2-827

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored and mrts committed Oct 13, 2023
1 parent e8e4916 commit 162b117
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/cmake-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,39 @@ env:
BUILD_DIR: build
BUILD_NUMBER: ${{github.run_number}}
OPENSSL_ROOT_DIR: ${{ github.workspace }}/openssl-binary
GTest_ROOT: ${{ github.workspace }}/gtest-binary
QT_QPA_PLATFORM: offscreen
MAKEFLAGS: -j3
MACOSX_DEPLOYMENT_TARGET: 10.15
MACOSX_DEPLOYMENT_TARGET: 10.16

jobs:
build:
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

- name: Cache
uses: actions/cache@v3
id: cache
with:
path: |
${{ env.OPENSSL_ROOT_DIR }}
${{ env.GTest_ROOT }}
key: ${{ runner.os }}-deps

- name: Build GTest
if: steps.cache.outputs.cache-hit != 'true'
run: |
git clone --depth=1 https://github.com/google/googletest.git
cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCMAKE_CXX_STANDARD=17 -S googletest -B gtest-build
cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCMAKE_INSTALL_PREFIX=${GTest_ROOT} -DCMAKE_CXX_STANDARD=17 -S googletest -B gtest-build
cmake --build gtest-build --target install
- name: Build OpenSSL
if: steps.cache.outputs.cache-hit != 'true'
run: |
git clone --depth=1 https://github.com/openssl/openssl.git -b openssl-3.0
cd openssl
Expand All @@ -48,7 +60,7 @@ jobs:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 6.5.2
version: 6.5.3
arch: clang_64

- name: Configure
Expand Down

0 comments on commit 162b117

Please sign in to comment.