mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
ci: Just remove the cache dance action
This commit is contained in:
@@ -111,59 +111,3 @@ runs:
|
|||||||
|
|
||||||
- uses: ./.forgejo/actions/timelord
|
- uses: ./.forgejo/actions/timelord
|
||||||
id: timelord
|
id: timelord
|
||||||
|
|
||||||
- name: Cache Rust registry
|
|
||||||
if: ${{ env.BUILDKIT_ENDPOINT == '' && env.ACTIONS_CACHE_URL != '' }}
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
.cargo/git
|
|
||||||
.cargo/git/checkouts
|
|
||||||
.cargo/registry
|
|
||||||
.cargo/registry/src
|
|
||||||
key: continuwuity-rust-registry-image-${{hashFiles('**/Cargo.lock') }}
|
|
||||||
|
|
||||||
- name: Cache cargo target
|
|
||||||
if: ${{ env.BUILDKIT_ENDPOINT == '' && env.ACTIONS_CACHE_URL != '' }}
|
|
||||||
id: cache-cargo-target
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
cargo-target${{ env.CPU_SUFFIX }}-${{ inputs.slug }}-${{ inputs.profile }}
|
|
||||||
key: continuwuity-cargo-target${{ env.CPU_SUFFIX }}-${{ inputs.slug }}-${{ inputs.profile }}-${{hashFiles('**/Cargo.lock') }}-${{steps.rust-toolchain.outputs.rustc_version}}
|
|
||||||
|
|
||||||
- name: Cache apt cache
|
|
||||||
if: ${{ env.BUILDKIT_ENDPOINT == '' && env.ACTIONS_CACHE_URL != '' }}
|
|
||||||
id: cache-apt
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
var-cache-apt-${{ inputs.slug }}
|
|
||||||
key: continuwuity-var-cache-apt-${{ inputs.slug }}
|
|
||||||
|
|
||||||
- name: Cache apt lib
|
|
||||||
if: ${{ env.BUILDKIT_ENDPOINT == '' && env.ACTIONS_CACHE_URL != '' }}
|
|
||||||
id: cache-apt-lib
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
var-lib-apt-${{ inputs.slug }}
|
|
||||||
key: continuwuity-var-lib-apt-${{ inputs.slug }}
|
|
||||||
|
|
||||||
- name: inject cache into docker
|
|
||||||
if: ${{ env.BUILDKIT_ENDPOINT == '' && env.ACTIONS_CACHE_URL != '' }}
|
|
||||||
uses: https://github.com/reproducible-containers/buildkit-cache-dance@v3.3.2
|
|
||||||
with:
|
|
||||||
cache-map: |
|
|
||||||
{
|
|
||||||
".cargo/registry": "/usr/local/cargo/registry",
|
|
||||||
".cargo/git/db": "/usr/local/cargo/git/db",
|
|
||||||
"cargo-target${{ env.CPU_SUFFIX }}-${{ inputs.slug }}-${{ inputs.profile }}": {
|
|
||||||
"target": "/app/target",
|
|
||||||
"id": "cargo-target${{ env.CPU_SUFFIX }}-${{ inputs.slug }}-${{ inputs.profile }}"
|
|
||||||
},
|
|
||||||
"var-cache-apt-${{ inputs.slug }}": "/var/cache/apt",
|
|
||||||
"var-lib-apt-${{ inputs.slug }}": "/var/lib/apt",
|
|
||||||
"${{ steps.timelord.outputs.database-path }}":"/timelord"
|
|
||||||
}
|
|
||||||
skip-extraction: ${{ steps.cache.outputs.cache-hit }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user