mikrotik-router-switch/.gitea/workflows/cron.yml
Yezzi Hsueh 59f23fc32a
Some checks failed
Create Scripts / Build (push) Has been cancelled
test
2025-06-27 18:00:39 +08:00

43 lines
1.2 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: |
~/.cargo/bin
~/.cargo/.crates.toml
~/.cargo/.crates2.json
~/.cargo/registry
~/.cargo/git
~/.cargo/env
#- 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
- run: sleep 86400
# - name: Upload Artifact
# uses: christopherhx/gitea-upload-artifact@v4
# with:
# name: chn_list.rsc
# path: chn_list.rsc