From b194a89028f9194b3ea5efe44014b20d85365f5f Mon Sep 17 00:00:00 2001 From: AntonChern Date: Fri, 2 Dec 2022 03:19:05 +0300 Subject: [PATCH] Update cmake.yml and check-codestyle.yml Added cloning eigen. --- .github/workflows/check-codestyle.yml | 13 +++++++++++++ .github/workflows/cmake.yml | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.github/workflows/check-codestyle.yml b/.github/workflows/check-codestyle.yml index 3a845d2469..ad1c479415 100644 --- a/.github/workflows/check-codestyle.yml +++ b/.github/workflows/check-codestyle.yml @@ -60,6 +60,12 @@ jobs: with: path: ${{github.workspace}}/lib/better-enums key: ${{ runner.os }}better-enums + - name: Cache eigen + uses: actions/cache@v3 + id: cache-eigen + with: + path: ${{github.workspace}}/lib/eigen + key: ${{ runner.os }}eigen - name: Install Boost run: | @@ -91,6 +97,13 @@ jobs: cd lib git clone https://github.com/aantron/better-enums.git --branch 0.11.3 if: steps.cache-better-enums.outputs.cache-hit != 'true' + - name: Download eigen + run: | + mkdir -p lib + sudo chown -R $USER lib + cd lib + git clone https://github.com/libigl/eigen + if: steps.cache-eigen.outputs.cache-hit != 'true' - name: Generate compile_commands.json run: | diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 882128ddbd..09ca2b1fcc 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -42,6 +42,12 @@ jobs: with: path: ${{github.workspace}}/lib/better-enums key: ${{ runner.os }}better-enums + - name: Cache eigen + uses: actions/cache@v3 + id: cache-eigen + with: + path: ${{github.workspace}}/lib/eigen + key: ${{ runner.os }}eigen # Uncomment this if we set up our own git lfs server # # - name: Install git-lfs @@ -97,6 +103,13 @@ jobs: cd lib git clone https://github.com/aantron/better-enums.git --branch 0.11.3 if: steps.cache-better-enums.outputs.cache-hit != 'true' + - name: Download eigen + run: | + mkdir -p lib + sudo chown -R $USER lib + cd lib + git clone https://github.com/libigl/eigen + if: steps.cache-eigen.outputs.cache-hit != 'true' - name: Configure CMake run: > cmake -B ${{github.workspace}}/build