From b0ac97fc422734bd3038865aece4623c5248316e Mon Sep 17 00:00:00 2001 From: Diego Herrera Date: Fri, 1 Oct 2021 16:26:24 -0600 Subject: [PATCH] Update makefile.yml --- .github/workflows/makefile.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index d3480b5..a6867ac 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -12,7 +12,12 @@ jobs: runs-on: ubuntu-latest steps: - + + - name: Install gtest manually + run: | + sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake CMakeLists.txt && sudo make + sudo cp *.a /usr/lib && sudo ln -s /usr/lib/libgtest.a /usr/local/lib/libgtest.a && sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/libgtest_main.a + - uses: actions/checkout@v2 - name: Build @@ -20,7 +25,11 @@ jobs: cd code make all - name: Build tests - run: make tests + run: | + cd code + make test - name: Execute tests - run: ./bin/unittest + run: | + cd code + ./bin/unittest