48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: Create Scripts
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- "**.md"
|
|
schedule:
|
|
- cron: 0 5 * * *
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/cache@v4
|
|
env:
|
|
prefix-key: v0-rust
|
|
with:
|
|
key: ${{ env.prefix-key }}-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Cargo.lock') }}
|
|
restore-keys: |
|
|
${{ env.prefix-key }}-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Cargo.lock') }}
|
|
${{ env.prefix-key }}-${{ runner.os }}-${{ runner.arch }}
|
|
${{ env.prefix-key }}-${{ runner.arch }}
|
|
${{ env.prefix-key }}-
|
|
path: |
|
|
target
|
|
~/.cargo/bin
|
|
~/.cargo/.crates.toml
|
|
~/.cargo/.crates2.json
|
|
~/.cargo/registry
|
|
~/.cargo/git
|
|
~/.cargo/env
|
|
~/.rustup/toolchains
|
|
- run: |
|
|
if [ -e ~/.cargo/env ]; then
|
|
source ~/.cargo/env
|
|
fi
|
|
#- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: 1.88.0
|
|
#- uses: actions-rs/cargo@v1
|
|
# with:
|
|
# command: run
|
|
# - name: Upload Artifact
|
|
# uses: christopherhx/gitea-upload-artifact@v4
|
|
# with:
|
|
# name: chn_list.rsc
|
|
# path: chn_list.rsc
|