Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
56 changes: 56 additions & 0 deletions .github/workflows/ci-saorsa-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI — saorsa-core

on:
push:
branches: [main]
paths:
- "crates/saorsa-core/**"
- "Cargo.toml"
- "Cargo.lock"
pull_request:
branches: [main]
paths:
- "crates/saorsa-core/**"
- "Cargo.toml"
- "Cargo.lock"

env:
CARGO_TERM_COLOR: always

jobs:
lint:
name: Lint (saorsa-core)
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Clippy (strict)
run: cargo clippy -p saorsa-core --all-targets -- -D warnings -D clippy::unwrap_used -D clippy::expect_used

test:
name: Test (saorsa-core)
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Unit tests
run: cargo test -p saorsa-core --lib

doc:
name: Doc (saorsa-core)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build docs
run: cargo doc -p saorsa-core --no-deps
env:
RUSTDOCFLAGS: "-D warnings"
62 changes: 62 additions & 0 deletions .github/workflows/ci-saorsa-transport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CI — saorsa-transport

on:
push:
branches: [main]
paths:
- "crates/saorsa-transport/**"
- "Cargo.toml"
- "Cargo.lock"
pull_request:
branches: [main]
paths:
- "crates/saorsa-transport/**"
- "Cargo.toml"
- "Cargo.lock"

env:
CARGO_TERM_COLOR: always

jobs:
lint:
name: Lint (saorsa-transport)
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Install system deps
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev pkg-config
- name: Clippy (strict)
run: cargo clippy -p saorsa-transport --all-targets -- -D warnings

test:
name: Test (saorsa-transport)
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install system deps
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev pkg-config
- name: Unit tests
run: cargo test -p saorsa-transport --lib

doc:
name: Doc (saorsa-transport)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install system deps
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev pkg-config
- name: Build docs
run: cargo doc -p saorsa-transport --no-deps
env:
RUSTDOCFLAGS: "-D warnings"
Loading
Loading