Skip to content

Commit

Permalink
Fix hashFiles() input for C++ CI caching (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhurliman authored Oct 4, 2022
1 parent c191848 commit ac35b82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.conan/data
key: ${{ runner.os }}-${{ hashFiles('~/.conan/data') }}
key: ${{ runner.os }}-${{ hashFiles('cpp/**/conanfile.py') }}
- uses: satackey/action-docker-layer-caching@v0.0.11
continue-on-error: true
- run: cd cpp && make ci
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.conan/data
key: ${{ runner.os }}-${{ hashFiles('~/.conan/data') }}
key: ${{ runner.os }}-${{ hashFiles('cpp/**/conanfile.py') }}
- uses: satackey/action-docker-layer-caching@v0.0.11
continue-on-error: true
- run: make ci-format-check
Expand Down
6 changes: 3 additions & 3 deletions cpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ ci-image: hdoc-build

.PHONY: ci
ci: ci-image
docker run -t --rm -v $(CURDIR):/mcap/cpp mcap_cpp_ci ./build.sh
docker run -t --rm -v $(CURDIR):/mcap/cpp -v $(HOME)/.conan/data:/root/.conan/data mcap_cpp_ci ./build.sh

.PHONY: ci-docs
ci-docs: ci-image
docker build -t mcap_cpp_ci_jammy -f ci.Dockerfile .
docker run -t --rm -v $(CURDIR):/mcap/cpp -v $(CURDIR)/../__docs__/cpp:/hdoc-output mcap_cpp_ci_jammy ./build-docs.sh
docker run -t --rm -v $(CURDIR):/mcap/cpp -v $(CURDIR)/../__docs__/cpp:/hdoc-output -v $(HOME)/.conan/data:/root/.conan/data mcap_cpp_ci_jammy ./build-docs.sh

.PHONY: ci-format-check
ci-format-check: ci-image
docker run -t --rm -v $(CURDIR):/mcap/cpp mcap_cpp_ci python3 scripts/format.py .
docker run -t --rm -v $(CURDIR):/mcap/cpp -v $(HOME)/.conan/data:/root/.conan/data mcap_cpp_ci python3 scripts/format.py .

0 comments on commit ac35b82

Please sign in to comment.