Skip to content

Commit

Permalink
Update cmake.yml and check-codestyle.yml
Browse files Browse the repository at this point in the history
Added cloning eigen.
  • Loading branch information
AntonChern committed Dec 4, 2022
1 parent d39bba4 commit b194a89
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/check-codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b194a89

Please sign in to comment.