mikrotik-router-switch/.gitea/workflows/cron.yml
Yezzi Hsueh 5a14d064c5
Some checks failed
Create Scripts / Build (push) Failing after 55s
test
2025-06-27 19:53:13 +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
hash-short: ${{ (hashFiles('Cargo.lock') | cut -c 1-8) }}
with:
key: ${{ env.prefix-key }}-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ env.prefix-key }}-${{ runner.os }}-${{ runner.arch }}-
${{ env.prefix-key }}-${{ runner.os }}-
${{ env.prefix-key }}-
path: |
~/.cargo/bin
~/.cargo/.crates.toml
~/.cargo/.crates2.json
~/.cargo/registry
~/.cargo/git
~/.rustup/toolchains
./target
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.88.0
- uses: actions-rs/cargo@v1
with:
command: run
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: chn_list.rsc
path: chn_list.rsc
retention-days: 7