ci: enable GitHub/Gitea worker
CI / Check & Lint (push) Failing after 11m51s

This commit is contained in:
Catty Steve
2026-04-23 16:30:51 +08:00
parent 117660d5c4
commit 9d3d61ba66
+50
View File
@@ -0,0 +1,50 @@
name: CI
on:
push:
branches: [ master, main ]
paths:
- 'workshop-baker/**'
- '.github/workflows/ci.yml'
pull_request:
branches: [ master, main ]
paths:
- 'workshop-baker/**'
- '.github/workflows/ci.yml'
env:
CARGO_TERM_COLOR: always
jobs:
check-and-lint:
name: Check & Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./workshop-baker
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Cache cargo dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Check code (cargo check)
run: cargo check --all-features
- name: Run Clippy lints
run: cargo clippy --all-features -- -D warnings