Skip to content

Commit 87396f4

Browse files
committed
ci: avoid sembr getting rebuilt on every push
1 parent 7e4f7bd commit 87396f4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ jobs:
8383
git commit -m "Deploy ${GITHUB_SHA} to gh-pages"
8484
git push --quiet -f "https://x-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}" HEAD:gh-pages
8585
86+
- name: Cache sembr build
87+
uses: actions/cache@v4
88+
with:
89+
path: |
90+
~/.cargo/registry/index/
91+
~/.cargo/registry/cache/
92+
~/.cargo/git/db/
93+
ci/sembr/target/
94+
key: ${{ hashFiles('ci/sembr/Cargo.lock') }}
95+
8696
- name: Check if files comply with semantic line breaks
8797
continue-on-error: true
8898
run: |

0 commit comments

Comments
 (0)