Skip to content

Commit ac7d1ff

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

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,18 @@ 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: sembr-${{ hashFiles('ci/sembr/Cargo.lock') }}
95+
8696
- name: Check if files comply with semantic line breaks
8797
continue-on-error: true
8898
run: |
8999
# using split_inclusive that uses regex feature that uses an unstable feature
90-
RUSTC_BOOTSTRAP=1 cargo run --manifest-path ci/sembr/Cargo.toml src
100+
RUSTC_BOOTSTRAP=1 cargo run --release --manifest-path ci/sembr/Cargo.toml src

0 commit comments

Comments
 (0)