Skip to content

Commit

Permalink
[test] CI wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Quuxplusone committed Oct 18, 2023
1 parent e41f850 commit edf246e
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,45 @@ jobs:
#
id: strings
shell: bash
run: |
run: >
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Cache Google Test
id: cache-google-test
uses: actions/cache@v2
env:
cache-name: cache-google-test-repo
with:
path: googletest
key: ${{ matrix.os }}-build-${{ env.cache-name }}

- name: Install Google Test
if: steps.cache-google-test.outputs.cache-hit != 'true'
run: |
git clone https://github.com/google/googletest.git
mkdir googletest/build
cd googletest/build
cmake ..
sudo make install
- name: Cache Google Benchmark
id: cache-google-benchmark
uses: actions/cache@v2
env:
cache-name: cache-google-benchmark-repo
with:
path: benchmark
key: ${{ matrix.os }}-build-${{ env.cache-name }}

- name: Install Google Benchmark
if: steps.cache-google-benchmark.outputs.cache-hit != 'true'
run: |
git clone https://github.com/google/benchmark.git
mkdir benchmark/build
cd benchmark/build
cmake ..
sudo make install
- name: Configure CMake
# Configure CMake in a 'build' subdirectory.
# `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
Expand Down

0 comments on commit edf246e

Please sign in to comment.