-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added cargo-make, updated ci, added version script, added rust-toolchain * Updated test ci * Updated all cargo.toml + updated test command in Makefile * Added cargo-make to README * Update test CI naming * Update Makefile and Readme with Bobbin's requirements * Add doc-serce command and update script * Added cargo-make, updated ci, added version script, added rust-toolchain * Revert "Added cargo-make, updated ci, added version script, added rust-toolchain" This reverts commit a159eb4. * Removed additional white lines
- Loading branch information
Showing
18 changed files
with
1,599 additions
and
163 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Runs linting related jobs. | ||
|
||
name: lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
version: | ||
name: check rust version consistency | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
profile: minimal | ||
override: true | ||
- name: check rust versions | ||
run: ./scripts/check-rust-version.sh | ||
|
||
rustfmt: | ||
name: rustfmt nightly on ubuntu-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install minimal Rust with rustfmt & cargo-make | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly | ||
components: rustfmt | ||
override: true | ||
- uses: davidB/rust-cargo-make@v1 | ||
- name: cargo make - format | ||
run: cargo make format | ||
|
||
clippy: | ||
name: clippy stable on ubuntu-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install minimal Rust with clippy & cargo-make | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
components: clippy | ||
override: true | ||
- uses: davidB/rust-cargo-make@v1 | ||
- name: cargo make - clippy | ||
run: cargo make clippy |
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,30 @@ | ||
# Runs no-std related jobs. | ||
|
||
name: no-std | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
no-std: | ||
name: build ${{matrix.toolchain}} no-std for wasm32-unknown-unknown | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [stable, nightly] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{matrix.toolchain}} | ||
override: true | ||
- run: rustup target add wasm32-unknown-unknown | ||
- uses: davidB/rust-cargo-make@v1 | ||
- name: cargo make - build-no-std | ||
run: cargo 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,32 @@ | ||
# Runs testing related jobs. | ||
|
||
name: test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
test: | ||
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] | ||
args: ["default", "prove"] | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- 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 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
Oops, something went wrong.