ci: add gitea actions workflow
Some checks failed
CI / check (push) Failing after 55s
CI / build (push) Has been skipped

This commit is contained in:
xfy 2026-06-12 16:31:19 +08:00
parent b72bc512c2
commit 2a19bc4e28

69
.gitea/workflows/ci.yaml Normal file
View File

@ -0,0 +1,69 @@
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
check:
runs-on: ubuntu-latest
container:
image: rust:bookworm
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install system dependencies
run: |
apt-get update
apt-get install -y nodejs npm
- name: Install Rust target
run: rustup target add wasm32-unknown-unknown
- name: Install Dioxus CLI
run: cargo install dioxus-cli --locked
- name: Install Tailwind CSS CLI
run: |
npm install -g tailwindcss
- name: Check formatting
run: cargo fmt -- --check
- name: Run Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run tests
run: cargo test --all-features
- name: Dioxus check
run: dx check
build:
runs-on: ubuntu-latest
container:
image: rust:bookworm
needs: check
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install system dependencies
run: |
apt-get update
apt-get install -y nodejs npm
- name: Install Rust target
run: rustup target add wasm32-unknown-unknown
- name: Install Dioxus CLI
run: cargo install dioxus-cli --locked
- name: Install Tailwind CSS CLI
run: npm install -g tailwindcss
- name: Build release
run: make build