summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRina Fujino <18257209+rina23q@users.noreply.github.com>2022-08-02 22:46:22 +0200
committerGitHub <noreply@github.com>2022-08-02 22:46:22 +0200
commit8fa12d382a75562e69d08a83b075242bd89c6ba6 (patch)
treee3569d2b1e175b0dbcbd08b208fbc186a1805509
parentff57ca361c92938ec2f5fb23a7f1ab1b6b4431fd (diff)
parent06b14b97b2c9b9cb92754dc2aae75909164a41ff (diff)
Merge pull request #1313 from rina23q/bugfix/1312/udeps-job-must-run-after-filtering-job
Add "needs" on the Udeps job to run after Rust code changes
-rw-r--r--.github/workflows/pull-request-checks.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/pull-request-checks.yml b/.github/workflows/pull-request-checks.yml
index e0385719..49080505 100644
--- a/.github/workflows/pull-request-checks.yml
+++ b/.github/workflows/pull-request-checks.yml
@@ -6,7 +6,6 @@ on:
env:
CARGO_TERM_COLOR: always
- RUSTFLAGS: -D warnings
jobs:
block-fixup:
@@ -48,6 +47,7 @@ jobs:
udeps:
name: Check for unused dependencies
runs-on: ubuntu-latest
+ needs: changes
if: ${{ needs.changes.outputs.rust == 'true' || needs.changes.outputs.workflows == 'true' }}
steps:
- uses: actions/checkout@v3
@@ -128,6 +128,8 @@ jobs:
cargo-clippy:
name: Run cargo clippy
runs-on: Ubuntu-20.04
+ env:
+ RUSTFLAGS: -D warnings
needs: changes
if: ${{ needs.changes.outputs.rust == 'true' || needs.changes.outputs.workflows == 'true' }}
@@ -179,6 +181,8 @@ jobs:
cargo-test:
name: Run cargo test
runs-on: Ubuntu-20.04
+ env:
+ RUSTFLAGS: -D warnings
needs: [cargo-fmt, cargo-clippy]
steps:
@@ -215,6 +219,8 @@ jobs:
cargo-build:
name: Run cargo build
runs-on: Ubuntu-20.04
+ env:
+ RUSTFLAGS: -D warnings
needs: [cargo-fmt, cargo-clippy]
steps:
@@ -244,6 +250,8 @@ jobs:
cargo_build_arm7_32bit:
name: cargo build for armv7 32bit
runs-on: Ubuntu-20.04
+ env:
+ RUSTFLAGS: -D warnings
needs: [cargo-fmt, cargo-clippy]
steps:
@@ -270,6 +278,8 @@ jobs:
cargo_build_tests_arm7_32bit:
name: cargo build tests for armv7 32bit
runs-on: Ubuntu-20.04
+ env:
+ RUSTFLAGS: -D warnings
needs: [cargo-fmt, cargo-clippy]
steps: