-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
1,909 additions
and
913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[profile.default] | ||
failure-output = "immediate-final" | ||
fail-fast = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Runs build related jobs. | ||
|
||
name: build | ||
|
||
on: | ||
push: | ||
branches: [main, next] | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
no-std: | ||
name: Build for no-std | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [stable, nightly] | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: Build for no-std | ||
run: | | ||
rustup update --no-self-update ${{ matrix.toolchain }} | ||
rustup target add wasm32-unknown-unknown | ||
make build-no-std |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Runs changelog related jobs. | ||
# CI job heavily inspired by: https://github.com/tarides/changelog-check-action | ||
|
||
name: changelog | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize, labeled, unlabeled] | ||
|
||
jobs: | ||
changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@main | ||
with: | ||
fetch-depth: 0 | ||
- name: Check for changes in changelog | ||
env: | ||
BASE_REF: ${{ github.event.pull_request.base.ref }} | ||
NO_CHANGELOG_LABEL: ${{ contains(github.event.pull_request.labels.*.name, 'no changelog') }} | ||
run: ./scripts/check-changelog.sh "${{ inputs.changelog }}" | ||
shell: bash |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,28 @@ | ||
# Runs testing related jobs | ||
# Runs test related jobs. | ||
|
||
name: test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
branches: [main, next] | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
test: | ||
name: test ${{matrix.toolchain}} on ${{matrix.os}} with ${{matrix.features}} | ||
name: test ${{matrix.toolchain}} on ${{matrix.os}} with ${{matrix.args}} | ||
runs-on: ${{matrix.os}}-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [stable, nightly] | ||
os: [ubuntu] | ||
features: ["test", "test-no-default-features"] | ||
args: [default, no-std] | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Install rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{matrix.toolchain}} | ||
override: true | ||
- uses: davidB/rust-cargo-make@v1 | ||
- name: cargo make - test | ||
run: cargo make ${{matrix.features}} | ||
- uses: actions/checkout@main | ||
- uses: taiki-e/install-action@nextest | ||
- name: Perform tests | ||
run: | | ||
rustup update --no-self-update ${{matrix.toolchain}} | ||
make test-${{matrix.args}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,34 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-toml | ||
- id: pretty-format-json | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: detect-private-key | ||
- repo: https://github.com/hackaugusto/pre-commit-cargo | ||
rev: v1.0.0 | ||
hooks: | ||
# Allows cargo fmt to modify the source code prior to the commit | ||
- id: cargo | ||
name: Cargo fmt | ||
args: ["+stable", "fmt", "--all"] | ||
stages: [commit] | ||
# Requires code to be properly formatted prior to pushing upstream | ||
- id: cargo | ||
name: Cargo fmt --check | ||
args: ["+stable", "fmt", "--all", "--check"] | ||
stages: [push, manual] | ||
- id: cargo | ||
name: Cargo check --all-targets | ||
args: ["+stable", "check", "--all-targets"] | ||
- id: cargo | ||
name: Cargo check --all-targets --no-default-features | ||
args: ["+stable", "check", "--all-targets", "--no-default-features"] | ||
- id: cargo | ||
name: Cargo check --all-targets --features default,std,serde | ||
args: ["+stable", "check", "--all-targets", "--features", "default,std,serde"] | ||
# Unlike fmt, clippy will not be automatically applied | ||
- id: cargo | ||
name: Cargo clippy | ||
args: ["+nightly", "clippy", "--workspace", "--", "--deny", "clippy::all", "--deny", "warnings"] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-toml | ||
- id: pretty-format-json | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: detect-private-key | ||
- repo: local | ||
hooks: | ||
- id: lint | ||
name: Make lint | ||
stages: [commit] | ||
language: rust | ||
entry: make lint | ||
- id: doc | ||
name: Make doc | ||
stages: [commit] | ||
language: rust | ||
entry: make doc | ||
- id: check | ||
name: Make check | ||
stages: [commit] | ||
language: rust | ||
entry: make check |
Oops, something went wrong.