Skip to content

Commit d01ee84

Browse files
committed
ci: use ccache
1 parent e2b70f0 commit d01ee84

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/macos-linux-conda.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ on: [push,pull_request]
44

55
jobs:
66
eigenpy-conda:
7-
name: CI - EigenPy on ${{ matrix.os }} via Conda
7+
name: CI on ${{ matrix.os }} via Conda
88
runs-on: ${{ matrix.os }}
9+
env:
10+
CCACHE_DIR: /github/home/.ccache # Enable ccache
911

1012
strategy:
1113
fail-fast: false
@@ -14,10 +16,8 @@ jobs:
1416

1517
steps:
1618
- uses: actions/checkout@v2
17-
18-
- name: Checkout submodules
19-
run: |
20-
git submodule update --init
19+
with:
20+
submodules: recursive
2121

2222
- uses: conda-incubator/setup-miniconda@v2
2323
with:
@@ -26,6 +26,11 @@ jobs:
2626
environment-file: .github/workflows/conda/environment.yml
2727
python-version: 3.8
2828

29+
- uses: actions/cache@v2
30+
with:
31+
path: ${{ env.CCACHE_DIR }}
32+
key: ccache-${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }}
33+
2934
- name: Install cmake and update conda
3035
shell: bash -l {0}
3136
run: |

0 commit comments

Comments
 (0)