Skip to content

Commit

Permalink
Update workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
n3vu0r committed Aug 16, 2023
1 parent 4c53767 commit 55d508b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 38 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
name: build
on:
schedule:
- cron: '0 5 * * *'
push:
merge_group:
pull_request:
push:
env:
CARGO_TERM_COLOR: always
jobs:
default:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: msrv
run: >
msrv=$(cargo metadata --no-deps --format-version 1 |
jq --raw-output '.packages[] | select(.name=="trackball") | .rust_version');
echo "MSRV=$msrv" >> $GITHUB_ENV
- name: toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
toolchain: ${{ env.MSRV }}
components: rustfmt, rust-docs, clippy
- name: test
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test
- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- --deny clippy::pedantic
run: >
cargo clippy --tests --
-D clippy::all -D clippy::pedantic -D clippy::nursery;
- name: doc
uses: actions-rs/cargo@v1
with:
command: doc
run: cargo doc
- name: fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
cc:
run: cargo fmt --check
all-features:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: msrv
run: >
msrv=$(cargo metadata --no-deps --format-version 1 |
jq --raw-output '.packages[] | select(.name=="trackball") | .rust_version');
echo "MSRV=$msrv" >> $GITHUB_ENV
- name: toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
toolchain: ${{ env.MSRV }}
components: rustfmt, rust-docs, clippy
- name: test
uses: actions-rs/cargo@v1
with:
command: test
args: --features cc
run: cargo test --all-features
- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --features cc -- --deny clippy::pedantic
run: >
cargo clippy --tests --all-features --
-D clippy::all -D clippy::pedantic -D clippy::nursery;
- name: doc
uses: actions-rs/cargo@v1
with:
command: doc
args: --features cc
env:
RUSTDOCFLAGS: --cfg docsrs
run: cargo doc --all-features
- name: fmt
run: cargo fmt --check --all-features
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "trackball"
version = "0.11.1"
version = "0.11.2"
rust-version = "1.70.0"
authors = ["Rouven Spreckels <[email protected]>"]
edition = "2021"
description = "Virtual Trackball Orbiting via the Exponential Map"
Expand Down Expand Up @@ -31,7 +32,7 @@ include = [
]

[package.metadata.docs.rs]
features = ["glam", "serde"]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
Expand Down

0 comments on commit 55d508b

Please sign in to comment.