Skip to content

Commit

Permalink
fix: caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Firgrep committed Jul 31, 2024
1 parent 14822e2 commit 438bce0
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/verify_mdx_content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/cache/restore@v4
id: prepyrus-cache-restore
with:
path: |
- ~/.cargo/bin/
- ~/.cargo/registry/index/
- ~/.cargo/registry/cache/
- ~/.cargo/git/db/
- target/
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('scripts/prepyprus/Cargo.lock') }}-${{ hashFiles('scripts/prepyprus/src/**') }}
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install dependencies
run: cargo build --release --package prepyrus
- name: Run Rust script
- name: Run prepyrus script in verification mode
run: target/release/prepyrus absolute_bibliography.bib src/pages verify
- name: Save Prepyrus to cache
id: prepyrus-cache-save
uses: actions/cache/save@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('scripts/prepyprus/Cargo.lock') }}-${{ hashFiles('scripts/prepyprus/src/**') }}

0 comments on commit 438bce0

Please sign in to comment.