Skip to content

Commit

Permalink
initial ci configs
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed Feb 22, 2024
1 parent 064e464 commit 8683c8d
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:
schedule: [cron: "40 1 * * *"]

permissions:
contents: read

env:
RUSTFLAGS: -Dwarnings

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy

- name: Lint
run: |
cargo fmt -- --check
cargo clippy --all-targets
- name: Build Documentation
run: cargo doc --no-deps

- name: Run tests
run: cargo test --all-features
31 changes: 31 additions & 0 deletions .github/workflows/rustdoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: rustdoc

on:
push:
branches: [ master ]
workflow_dispatch:

env:
RUSTFLAGS: -D warnings

jobs:
rustdoc:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build Documentation
env:
RUSTDOCFLAGS: "--cfg=doc_cfg -Zunstable-options --generate-link-to-definition"
RUSTC_BOOTSTRAP: 1
run: cargo doc --all-features --no-deps

- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./target/doc
force_orphan: true

0 comments on commit 8683c8d

Please sign in to comment.