@@ -34,41 +34,17 @@ jobs:
34
34
- name : Configure Rust target ${{ inputs.rustup-target }}
35
35
run : rustup target add ${{ inputs.rustup-target }}
36
36
37
- - name : Cache Dependencies
38
- uses : Swatinem/rust-cache@v2
39
-
40
- - run : cargo xtask --deny-warnings check -p ${{ inputs.platform }} -b ${{ inputs.backend }}
41
-
42
- check-examples :
43
- runs-on : ubuntu-22.04
44
- name : Check examples
45
- steps :
46
- - name : Checkout
47
- uses : actions/checkout@v4
48
-
49
- - name : Configure Rust target ${{ inputs.rustup-target }}
50
- run : rustup target add ${{ inputs.rustup-target }}
37
+ - name : Add Rust component clippy
38
+ run : rustup component add clippy
51
39
52
40
- name : Cache Dependencies
53
41
uses : Swatinem/rust-cache@v2
54
42
43
+ - name : Check all packages
44
+ run : cargo xtask --deny-warnings check -p ${{ inputs.platform }} -b ${{ inputs.backend }}
45
+
55
46
- name : Check the examples
56
47
run : cargo xtask example-check --platform ${{ inputs.platform }} --backend ${{ inputs.backend }} ${{ inputs.example-args }}
57
48
58
- clippy :
59
- runs-on : ubuntu-22.04
60
- name : Run clippy
61
- steps :
62
- - name : Checkout
63
- uses : actions/checkout@v4
64
-
65
- - name : Configure Rust target ${{ inputs.rustup-target }}
66
- run : rustup target add ${{ inputs.rustup-target }}
67
-
68
- - name : Add Rust component clippy
69
- run : rustup component add clippy
70
-
71
- - name : Cache Dependencies
72
- uses : Swatinem/rust-cache@v2
73
-
74
- - run : cargo xtask --deny-warnings --platform ${{ inputs.platform }} --backend ${{ inputs.backend }} clippy
49
+ - name : Run clippy
50
+ run : cargo xtask --deny-warnings --platform ${{ inputs.platform }} --backend ${{ inputs.backend }} clippy
0 commit comments