Skip to content

Commit

Permalink
add rust-toolchain.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
a5-pickle committed Oct 7, 2024
1 parent 7b2f576 commit 7a978b8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/universal-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@ env:

jobs:
test:
name: test ${{ matrix.rust }}
name: test
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
rust: ["stable", "beta", "nightly", "1.75"] # MSRV
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
- uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
toolchain: ${{ env.RUSTC_VERSION }}
- uses: Swatinem/rust-cache@v2
- name: test
run: cd universal/rs && cargo test --workspace --all-features
Expand All @@ -33,8 +32,11 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@clippy
- uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUSTC_VERSION }}
- run: cd universal/rs && cargo clippy --workspace --all-targets
env:
RUSTFLAGS: -Dwarnings
Expand All @@ -44,9 +46,11 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUSTC_VERSION }}
components: rust-docs
- run: cd universal/rs && cargo doc --workspace --no-deps --document-private-items
env:
Expand All @@ -57,8 +61,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUSTC_VERSION }}
components: rustfmt
- run: cd universal/rs && cargo fmt --all --check
8 changes: 8 additions & 0 deletions solana/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[toolchain]
channel = "1.75"
components = [
"clippy",
"rustfmt",
"rustc-dev"
]
profile = "minimal"
8 changes: 8 additions & 0 deletions universal/rs/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[toolchain]
channel = "1.75"
components = [
"clippy",
"rustfmt",
"rustc-dev"
]
profile = "minimal"

0 comments on commit 7a978b8

Please sign in to comment.