Skip to content

Commit b6e15e7

Browse files
committed
Fix toolchain configuration
1 parent b1da0cc commit b6e15e7

File tree

4 files changed

+9
-26
lines changed

4 files changed

+9
-26
lines changed

.github/actions/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ runs:
5757
if: ${{ inputs.solana == 'true' }}
5858
uses: solana-program/actions/install-solana@v1
5959
with:
60-
version: ${{ env.SOLANA_VERSION }}
60+
version: ${{ env.SOLANA_CLI_VERSION }}
6161
cache: true
6262

6363
- name: Install 'cargo-audit'
@@ -88,7 +88,7 @@ runs:
8888
if: ${{ contains(inputs.toolchain, 'lint') }}
8989
uses: dtolnay/rust-toolchain@master
9090
with:
91-
toolchain: ${{ env.TOOLCHAIN_LINT }}
91+
toolchain: ${{ env.RUST_TOOLCHAIN_LINT }}
9292
components: miri
9393

9494
- name: Install 'cargo-spellcheck'

.github/workflows/main.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,6 @@ env:
99
CACHE: true
1010

1111
jobs:
12-
spellcheck:
13-
name: Spellcheck
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Git Checkout
17-
uses: actions/checkout@v4
18-
19-
- name: Setup Environment
20-
uses: ./.github/actions/setup
21-
with:
22-
cargo-cache-key: cargo-spellcheck
23-
components: spellcheck
24-
25-
- name: cargo-spellcheck
26-
run: ./make spellcheck
27-
2812
lint:
2913
name: Lint
3014
runs-on: ubuntu-latest
@@ -37,7 +21,7 @@ jobs:
3721
with:
3822
cargo-cache-key: cargo-lint
3923
toolchain: format, lint
40-
components: hack, miri
24+
components: hack, miri, spellcheck
4125

4226
- name: cargo-clippy
4327
run: ./make.sh clippy
@@ -54,6 +38,9 @@ jobs:
5438
- name: cargo-miri
5539
run: ./make.sh miri
5640

41+
- name: cargo-spellcheck
42+
run: ./make.sh spellcheck
43+
5744
build:
5845
name: Build
5946
runs-on: ubuntu-latest

.scripts/hack.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ if [ ! -f "$MANIFEST_FILE" ]; then
99
exit 1
1010
fi
1111

12-
if [ ! -z "$RUST_TOOLCHAIN_LINT" ]; then
13-
TOOLCHAIN="+$RUST_TOOLCHAIN_LINT"
14-
fi
15-
1612
CHECK_ARGS="--all-targets \
1713
--feature-powerset"
1814

19-
cargo $TOOLCHAIN hack check --manifest-path $MANIFEST_FILE $CHECK_ARGS $@
15+
cargo hack check --manifest-path $MANIFEST_FILE $CHECK_ARGS $@

make.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -e
44

55
# Export environment variables and functions.
66
export RUST_TOOLCHAIN_BUILD="1.84.1"
7-
export RUST_TOOLCHAIN_FORMAT="nightly-2024-11-22"
8-
export RUST_TOOLCHAIN_LINT="nightly-2024-11-22"
7+
export RUST_TOOLCHAIN_FORMAT="nightly-2025-02-16"
8+
export RUST_TOOLCHAIN_LINT="nightly-2025-02-16"
99
export RUST_TOOLCHAIN_TEST="1.84.1"
1010
export SOLANA_CLI_VERSION="2.3.4"
1111
export WORKING_DIR=$(cd $(dirname $0) && pwd)

0 commit comments

Comments
 (0)