增加release 分支缓存恢复功能
This commit is contained in:
29
.github/workflows/pake_build.yaml
vendored
29
.github/workflows/pake_build.yaml
vendored
@@ -1,9 +1,9 @@
|
|||||||
name: Build App with Cache
|
name: Build App
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# Sequence of patterns matched against refs/tags
|
# Sequence of patterns matched against refs/tags
|
||||||
branches:
|
tags:
|
||||||
- release
|
- "V*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -75,26 +75,3 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
curl -L https://github.com/probonopd/uploadtool/raw/master/upload.sh --output upload.sh
|
curl -L https://github.com/probonopd/uploadtool/raw/master/upload.sh --output upload.sh
|
||||||
bash upload.sh output/*/*.*
|
bash upload.sh output/*/*.*
|
||||||
|
|
||||||
- name: rust cache store
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/bin/
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
src-tauri/target/
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
|
|
||||||
# - name: Build archive
|
|
||||||
# shell: bash
|
|
||||||
# run: |
|
|
||||||
# cd src-tauri
|
|
||||||
# tar -czf "${{ matrix.archive-name }}" target
|
|
||||||
|
|
||||||
# - name: Upload archive
|
|
||||||
# uses: actions/upload-artifact@v1
|
|
||||||
# with:
|
|
||||||
# name: ${{ matrix.archive-name }}
|
|
||||||
# path: src-tauri/${{ matrix.archive-name }}
|
|
||||||
|
|||||||
20
.github/workflows/pake_build_with_cache.yaml
vendored
20
.github/workflows/pake_build_with_cache.yaml
vendored
@@ -1,9 +1,9 @@
|
|||||||
name: Build App
|
name: Build App with Cache
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# Sequence of patterns matched against refs/tags
|
# Sequence of patterns matched against refs/tags
|
||||||
tags:
|
branches:
|
||||||
- "V*"
|
- release
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -109,17 +109,3 @@ jobs:
|
|||||||
# with:
|
# with:
|
||||||
# name: ${{ matrix.archive-name }}
|
# name: ${{ matrix.archive-name }}
|
||||||
# path: src-tauri/${{ matrix.archive-name }}
|
# path: src-tauri/${{ matrix.archive-name }}
|
||||||
|
|
||||||
# - name: "Store cache"
|
|
||||||
# uses: Swatinem/rust-cache@v2
|
|
||||||
# with:
|
|
||||||
# prefix-key: ""
|
|
||||||
# shared-key: ""
|
|
||||||
# key: ""
|
|
||||||
# env-vars: ""
|
|
||||||
# workspaces: "src-tauri"
|
|
||||||
# cache-directories: ""
|
|
||||||
# cache-targets: ""
|
|
||||||
# cache-on-failure: ""
|
|
||||||
# save-if: ""
|
|
||||||
# for more to see: https://github.com/Swatinem/rust-cache
|
|
||||||
|
|||||||
Reference in New Issue
Block a user