Skip to content

Commit

Permalink
checkout googletest first
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Jan 6, 2024
1 parent 530672c commit c108c42
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ jobs:
- name: Checkout Loki
uses: actions/checkout@v2

- name: Checkout Google Test
uses: actions/checkout@v2
with:
repository: google/googletest
path: 'googletest'
ref: 'dddb219c3eb96d7f9200f09b0a381f016e6b4562' # stick to a commit to avoid added future dependencies

- name: Cache Google Test
id: cache-googletest
uses: actions/cache@v2
Expand All @@ -17,14 +24,6 @@ jobs:
googletest-install
key: ${{ runner.os }}-googletest-${{ hashFiles('**/googletest/CMakeLists.txt') }} # Unique key based on OS and CMake file

- name: Checkout Google Test
if: steps.cache-googletest.outputs.cache-hit != 'true'
uses: actions/checkout@v2
with:
repository: google/googletest
path: 'googletest'
ref: 'dddb219c3eb96d7f9200f09b0a381f016e6b4562' # stick to a commit to avoid added future dependencies

- name: Build and Install Google Test
if: steps.cache-googletest.outputs.cache-hit != 'true'
run: |
Expand Down

0 comments on commit c108c42

Please sign in to comment.