Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrimati1992 authored Oct 29, 2021
1 parent 38402fa commit ec2638d
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,23 @@ jobs:
os: ubuntu-latest

steps:
- name: enable-rust-stable
if: matrix.rust == '1.51.0'
run: echo "rustv=rust_1_51" >> $GITHUB_ENV

- name: enable-rust-stable
if: matrix.rust == 'stable' || matrix.rust == 'beta' || matrix.rust == 'nightly'
run: echo "rustv=rust_latest_stable" >> $GITHUB_ENV

- uses: actions/checkout@v2
- name: ci-format
if: matrix.rust == 'stable'
run: |
rustup override set ${{ matrix.rust }}
rustup component add rustfmt
cd "${{github.workspace}}/"
cargo fmt -- --check
- name: enable-rust-stable
if: matrix.rust == '1.51.0'
run: echo "rustv=rust_1_51" >> $GITHUB_ENV

- name: enable-rust-stable
if: matrix.rust == 'stable' || matrix.rust == 'beta' || matrix.rust == 'nightly'
run: echo "rustv=rust_latest_stable" >> $GITHUB_ENV

- uses: actions/checkout@v2
- name: ci-all-versions
run: |
Expand Down

0 comments on commit ec2638d

Please sign in to comment.