Skip to content

Commit

Permalink
Update ci-cd file as per #185
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Jul 18, 2024
1 parent 920d94b commit 7d56a92
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/ci-casper-client-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: ci-casper-client-rs

on:
push:
branches: [main, dev, release-2.0.0]
branches: [main, dev, release-2.0.0, feat-track-node-2.0]
paths-ignore:
- '**.md'

pull_request:
branches: [main, dev, release-2.0.0]
branches: [main, dev, release-2.0.0, feat-track-node-2.0]
paths-ignore:
- '**.md'

Expand All @@ -22,12 +22,19 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt, clippy
target: wasm32-unknown-unknown

- name: Get stable from rust-toolchain.toml
id: stable-toolchain
run: |
VER=$(sed -nr 's/channel\s+=\s+\"(.*)\"/\1/p' rust-toolchain.toml)
echo "RUST_CHANNEL=$VER" >> $GITHUB_ENV
- name: Install Toolchain - Stable
run: |
rustup update --no-self-update ${{ env.RUST_CHANNEL }}
rustup component add --toolchain ${{ env.RUST_CHANNEL }} rustfmt rust-src clippy
rustup default ${{ env.RUST_CHANNEL }}
rustup target add wasm32-unknown-unknown
- name: Fmt
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 7d56a92

Please sign in to comment.