Skip to content

Commit

Permalink
ci: Add nightly toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan46 committed May 13, 2024
1 parent 418e60c commit 6c51b1f
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: failure()
run: |
echo 'TOML is not formatted correctly'
echo 'Please run `taplo format`'
echo 'Please run taplo format'
format:
runs-on: ubuntu-latest
Expand All @@ -40,7 +40,7 @@ jobs:
if: failure()
run: |
echo '.rs files are not formatted correctly'
echo 'Please run `cargo fmt --all`'
echo 'Please run cargo fmt --all'
clippy:
runs-on: ubuntu-latest
Expand All @@ -52,7 +52,8 @@ jobs:
sudo apt-get install protobuf-compiler
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown, stable-x86_64-unknown-linux-gnu
toolchain: nightly
target: wasm32-unknown-unknown
components: clippy
- name: List version
run: |
Expand All @@ -63,7 +64,7 @@ jobs:
- name: Cargo clippy failure info
if: failure()
run: |
echo '`cargo clippy` failed'
echo 'cargo clippy failed'
echo 'Please fix the issue generated by clippy'
build:
Expand All @@ -76,7 +77,8 @@ jobs:
sudo apt-get install protobuf-compiler
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown, stable-x86_64-unknown-linux-gnu
toolchain: nightly
target: wasm32-unknown-unknown
- name: List version
run: cargo --version
- name: Build with try-runtime feature
Expand All @@ -102,7 +104,7 @@ jobs:
- name: Release build failed
if: failure()
run: |
echo '`cargo build --release` failed'
echo 'cargo build --release failed'
test:
runs-on: ubuntu-latest
Expand All @@ -114,12 +116,13 @@ jobs:
sudo apt-get install protobuf-compiler
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown, stable-x86_64-unknown-linux-gnu
toolchain: nightly
target: wasm32-unknown-unknown
- name: List version
run: cargo --version
- name: Run tests
run: RUSTFLAGS="-D warnings" cargo test --workspace
- name: Cargo test fail
if: failure()
run: |
echo '`cargo test --workspace` failed'
echo 'cargo test --workspace failed'

0 comments on commit 6c51b1f

Please sign in to comment.