Skip to content

Commit

Permalink
Fix caching
Browse files Browse the repository at this point in the history
  • Loading branch information
lj3954 committed May 30, 2024
1 parent 77abf2b commit 10db3f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/cache_program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ jobs:
repository: 'lj3954/quickemu-rs'
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build
run: cargo build --verbose --bin quickget_ci
run: cargo build --verbose --bin quickget_ci --release

- name: Cache
uses: actions/cache@v4
with:
path: target/debug/quickget_ci
path: target/release/quickget_ci
key: ${{ runner.os }}-quickget_ci-${{ hashFiles('**/Cargo.lock') }}

- name: Start config generation
uses: peter-evans/repository-dispatch@v3
with:
event_type: generate_configuration
token: ${{ secrets.PAT }}
event-type: generate_configuration
9 changes: 6 additions & 3 deletions .github/workflows/create_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
repository: 'lj3954/quickemu-rs'
- name: Restore cache
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
path: target/debug/quickget_ci
path: target/release/quickget_ci
key: ${{ runner.os }}-quickget_ci-${{ hashFiles('**/Cargo.lock') }}

- name: Install zstd
Expand All @@ -26,7 +29,7 @@ jobs:
- uses: actions/checkout@v4
- name: Create configs
run: |
./target/debug/quickget_ci
./target/release/quickget_ci
zstd -19 -o quickget_data.json.zst quickget_data.json
gzip -9 -k quickget_data.json
Expand Down

0 comments on commit 10db3f0

Please sign in to comment.