mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 13:23:28 +00:00
[ENG-1314] Re-enable cache factory on all main commits (#1608)
re-enable cache factory on all main commits
This commit is contained in:
parent
f67b7e807a
commit
5d350472a9
5
.github/actions/setup-rust/action.yaml
vendored
5
.github/actions/setup-rust/action.yaml
vendored
|
@ -23,8 +23,7 @@ runs:
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
save-if: ${{ inputs.save-cache }}
|
save-if: ${{ inputs.save-cache }}
|
||||||
prefix-key: 'v0-rust-deps'
|
shared-key: stable-cache
|
||||||
shared-key: ${{ inputs.target }}
|
|
||||||
|
|
||||||
- name: Cargo config.toml
|
- name: Cargo config.toml
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -34,7 +33,7 @@ runs:
|
||||||
id: cache-prisma-restore
|
id: cache-prisma-restore
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
key: prisma-1-${{ runner.os }}-${{ hashFiles('./core/prisma/*', './crates/sync-generator/*', './Cargo.toml') }}
|
key: prisma-1-${{ runner.os }}-${{ hashFiles('./core/prisma/*', './crates/sync-generator/*', './Cargo.*') }}
|
||||||
path: crates/prisma/src/**/*.rs
|
path: crates/prisma/src/**/*.rs
|
||||||
|
|
||||||
- name: Generate Prisma client
|
- name: Generate Prisma client
|
||||||
|
|
11
.github/workflows/cache-factory.yaml
vendored
11
.github/workflows/cache-factory.yaml
vendored
|
@ -5,17 +5,10 @@ name: Cache Factory
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
|
||||||
- 'Cargo.lock'
|
|
||||||
- './scripts/setup.sh'
|
|
||||||
- './scripts/setup.ps1'
|
|
||||||
- '.github/workflows/cache-factory.yaml'
|
|
||||||
- '.github/actions/**/*.yml'
|
|
||||||
- '.github/actions/**/*.yaml'
|
|
||||||
- '**/build.rs'
|
|
||||||
- 'core/prisma/**'
|
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
# Cancel previous runs of the same workflow on the same branch.
|
# Cancel previous runs of the same workflow on the same branch.
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|
Loading…
Reference in a new issue