This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* format .github dir * depbot entry for github actions * use actions-rust-lang/setup-rust-toolchain * use concurrency * add spell and toml check * fix grammar and spelling * update typos config * update taplo config * format toml files * nit on doc * nit * tab to space
- Loading branch information
Showing
48 changed files
with
353 additions
and
345 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
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 |
---|---|---|
|
@@ -19,4 +19,4 @@ ignore: | |
# Make comments less noisy | ||
comment: | ||
layout: "files" | ||
require_changes: true | ||
require_changes: true |
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,10 +1,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: cargo | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
day: monday | ||
time: "15:00" | ||
timezone: "Europe/Warsaw" | ||
open-pull-requests-limit: 0 | ||
- package-ecosystem: cargo | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
day: monday | ||
time: "15:00" | ||
timezone: "Europe/Warsaw" | ||
open-pull-requests-limit: 0 | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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 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,9 @@ | ||
[default.extend-words] | ||
# for serde serialization | ||
ser = "ser" | ||
|
||
[files] | ||
extend-exclude = [ "**/*.bin" ] | ||
|
||
[default] | ||
extend-ignore-re = [ "cosmos1[0-9A-Za-z+/]{10,}", "ch[ABC][ABC]" ] |
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 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 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 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,21 @@ | ||
name: Code Quality Checks | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
code-quality: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Spell Check with Typos | ||
uses: crate-ci/[email protected] | ||
with: | ||
config: ./.github/typos.toml | ||
|
||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- uses: baptiste0928/cargo-install@v3 | ||
with: | ||
crate: taplo-cli | ||
- run: taplo fmt --check |
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 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 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 |
---|---|---|
|
@@ -4,15 +4,15 @@ on: | |
paths: | ||
- .github/workflows/risc0-check.yml | ||
- ci/risc0-check/** | ||
- '**/Cargo.toml' | ||
- '**/Cargo.lock' | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
push: | ||
branches: main | ||
paths: | ||
- .github/workflows/risc0-check.yml | ||
- ci/risc0-check/** | ||
- '**/Cargo.toml' | ||
- '**/Cargo.lock' | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
|
@@ -31,8 +31,6 @@ jobs: | |
git config --global --replace-all \ | ||
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | ||
ssh://[email protected] | ||
- name: Cache dependencies | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Install cargo-risczero | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
|
@@ -42,4 +40,4 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Check Risc0 compatibility | ||
run: make check-risc0 | ||
run: make check-risc0 |
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 |
---|---|---|
|
@@ -27,25 +27,19 @@ env: | |
RUSTUP_MAX_RETRIES: 10 | ||
MSRV: 1.77 | ||
|
||
jobs: | ||
cleanup-runs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: rokroskar/workflow-run-cleanup-action@master | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
if: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }} | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: nightly # Since fmt uses unstable features for organizing imports | ||
components: rustfmt | ||
override: true | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
|
@@ -61,11 +55,9 @@ jobs: | |
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | ||
ssh://[email protected] | ||
- uses: arduino/setup-protoc@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: ${{ env.MSRV }} | ||
override: true | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Build with MSRV | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
|
@@ -83,11 +75,9 @@ jobs: | |
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | ||
ssh://[email protected] | ||
- uses: arduino/setup-protoc@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: doc | ||
|
@@ -103,12 +93,10 @@ jobs: | |
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | ||
ssh://[email protected] | ||
- uses: arduino/setup-protoc@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: clippy | ||
override: true | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -124,12 +112,10 @@ jobs: | |
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | ||
ssh://[email protected] | ||
- uses: arduino/setup-protoc@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: clippy | ||
override: true | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -146,11 +132,9 @@ jobs: | |
"url.https://${{ secrets.AUTH_TOKEN }}@github.com.insteadOf" \ | ||
ssh://[email protected] | ||
- uses: arduino/setup-protoc@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
|
@@ -159,4 +143,3 @@ jobs: | |
with: | ||
command: test | ||
args: --all-features --no-fail-fast --workspace -- --nocapture | ||
|
Oops, something went wrong.