Skip to content
Merged
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
39 changes: 36 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
fmt:
name: rustfmt
runs-on: ubuntu-24.04

defaults:
run:
working-directory: faith-ui

steps:
- uses: actions/checkout@v4
Expand All @@ -35,7 +39,11 @@ jobs:
clippy:
name: clippy
runs-on: ubuntu-24.04


defaults:
run:
working-directory: faith-ui

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -65,6 +73,8 @@ jobs:

- name: Cache Cargo
uses: Swatinem/rust-cache@v2
with:
workspaces: faith-ui

- name: Clippy
run: cargo clippy --locked --all-targets --all-features -- -D warnings
Expand All @@ -73,6 +83,10 @@ jobs:
name: test
runs-on: ubuntu-24.04

defaults:
run:
working-directory: faith-ui

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -100,6 +114,8 @@ jobs:

- name: Cache Cargo
uses: Swatinem/rust-cache@v2
with:
workspaces: faith-ui

- name: Check
run: cargo check --locked --all-targets --all-features
Expand All @@ -110,6 +126,10 @@ jobs:
docs:
name: docs
runs-on: ubuntu-24.04

defaults:
run:
working-directory: faith-ui

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -138,13 +158,19 @@ jobs:

- name: Cache Cargo
uses: Swatinem/rust-cache@v2
with:
workspaces: faith-ui

- name: Build docs
run: cargo doc --locked --no-deps --all-features

audit:
name: dependency audit
runs-on: ubuntu-24.04

defaults:
run:
working-directory: faith-ui

steps:
- uses: actions/checkout@v4
Expand All @@ -160,6 +186,10 @@ jobs:
runs-on: ubuntu-24.04
needs: [fmt, clippy, test, docs, audit]

defaults:
run:
working-directory: faith-ui

steps:
- uses: actions/checkout@v4

Expand All @@ -186,7 +216,10 @@ jobs:
uses: dtolnay/rust-toolchain@stable

- name: Cache Cargo
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@v2
with:
workspaces: faith-ui


- name: Build release binary
run: cargo build --locked --release
Expand All @@ -195,4 +228,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: faith-linux-x86_64
path: target/release/faith
path: faith-ui/target/release/faith
Loading