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 5, 2022
1 parent 67b363a commit 45ec1c9
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 @@ -66,6 +66,12 @@ jobs:
with:
path: ${{github.workspace}}/lib/pybind11
key: ${{ runner.os }}-pybind11
- 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 @@ -104,6 +110,13 @@ jobs:
cd lib
git clone https://github.com/pybind/pybind11.git --branch v2.10
if: steps.cache-pybind11.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 @@ -48,6 +48,12 @@ jobs:
with:
path: ${{github.workspace}}/lib/pybind11
key: ${{ runner.os }}-pybind11
- 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 @@ -110,6 +116,13 @@ jobs:
cd lib
git clone https://github.com/pybind/pybind11.git --branch v2.10
if: steps.cache-pybind11.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 45ec1c9

Please sign in to comment.