Skip to content

Improved README, added basic CI CD #8

Improved README, added basic CI CD

Improved README, added basic CI CD #8

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * *' # Run nightly to catch regressions
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
# TODO: Add Clippy and mock Funderberker testing
jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
crate: [macros, utils]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
key: crate-${{ matrix.crate }}
- name: Check ${{ matrix.crate }}
run: cargo +nightly check --manifest-path="${{ matrix.crate }}/Cargo.toml" --verbose
unit_tests:
name: Unit Test Individual Crates
runs-on: ubuntu-latest
strategy:
matrix:
crate: [macros, utils]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
key: crate-${{ matrix.crate }}
- name: Test ${{ matrix.crate }}
run: cargo +nightly test --manifest-path="${{ matrix.crate }}/Cargo.toml" --verbose
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build docs
run: cargo --manifest-path=kernel/Cargo.toml doc --no-deps --all-features
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc