Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-targets --all-features -- -D warnings
- run: cargo clippy --all-targets -- -D warnings

Copilot AI Mar 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI clippy no longer runs with --all-features. Since this repo has feature-gated targets (native vs cf-worker), dropping --all-features can let feature-specific compilation/lint issues slip through (notably for the Cloudflare Worker build). Consider adding a second clippy step for --no-default-features --features cf-worker or re-enabling --all-features.

Suggested change
- run: cargo clippy --all-targets -- -D warnings
- name: Clippy (default features)
run: cargo clippy --all-targets -- -D warnings
- name: Clippy (cf-worker features)
run: cargo clippy --all-targets --no-default-features --features cf-worker -- -D warnings

Copilot uses AI. Check for mistakes.

test:
name: Test
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy

on:
push:
branches: [main]
paths: ["**.rs", "Cargo.toml", "Cargo.lock", "wrangler.toml", ".github/workflows/deploy.yml"]

concurrency:
group: deploy
cancel-in-progress: true

jobs:
deploy:
name: Deploy to Cloudflare Workers
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown

- uses: Swatinem/rust-cache@v2

- uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ Thumbs.db
# 如果你的 test-webhook.sh 里包含了真实的 URL 或 Secret,
# 请取消下面这行的注释(去掉 # 号)
# ------------------------------------------------------
# test-webhook.sh
# test-webhook.sh
payload.json
.dev.vars
.wrangler/
Loading