Skip to content

Commit

Permalink
ci: remove matrix execution for release-check job
Browse files Browse the repository at this point in the history
* matrix is not necessary since it uses one set of values
* mainly removed to be able to skip the whole job when no changes to rust code are detected (looks better on PRs that the check was skipped)
  • Loading branch information
pchrysochoidis committed Mar 7, 2022
1 parent 826e171 commit c72a4ae
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,20 @@ jobs:
- '!(explorer|doc|.github)/**'
- '.github/workflows/rust.yml'
release-check:
name: Rust release-mode compilation ${{matrix.toolchain}} on ${{matrix.os}}
name: Rust release-mode compilation nightly on ubuntu
needs: diff
runs-on: ${{matrix.os}}-latest
strategy:
fail-fast: false
matrix:
toolchain: [nightly]
os: [ubuntu]
if: needs.diff.outputs.isRust == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
if: needs.diff.outputs.isRust == 'true'
- name: Install rust
if: needs.diff.outputs.isRust == 'true'
uses: actions-rs/toolchain@v1
with:
toolchain: ${{matrix.toolchain}}
toolchain: nightly
profile: minimal
override: true
- uses: Swatinem/rust-cache@v1
if: needs.diff.outputs.isRust == 'true'
- name: Check
if: needs.diff.outputs.isRust == 'true'
uses: actions-rs/cargo@v1
with:
command: check
Expand Down

0 comments on commit c72a4ae

Please sign in to comment.