2525 required : true
2626
2727jobs :
28- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29- # Code formatting
30- # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31- format :
32- name : cargo fmt
33- runs-on : ubuntu-${{ inputs.OS_VERS_MAX }}
34- steps :
35- - uses : actions/checkout@v7
36- - uses : actions-rust-lang/setup-rust-toolchain@v1
37- with :
38- toolchain : ${{ inputs.TOOLCHAIN_MAX }}
39- cache : false
40- components : rustfmt
41- - uses : actions-rust-lang/rustfmt@v1
42-
4328 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4429 # Code checks
4530 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -57,21 +42,22 @@ jobs:
5742 with :
5843 toolchain : ${{ matrix.rust }}
5944 cache : false
45+ components : rustfmt clippy
6046 - uses : awalsh128/cache-apt-pkgs-action@v1.6.1
6147 with :
6248 packages : pkgconf libtss2-dev uuid-dev libjson-c-dev libcurl4-openssl-dev
6349 version : v3-${{ matrix.architecture }}-${{ matrix.platform }}-${{ matrix.rust }}-${{ github.run_id }}-check
6450 - run : |
6551 pkgconf --path tss2-fapi
6652 pkgconf --cflags --libs tss2-fapi
67- - run : make check
53+ - run : make clippy
6854
6955 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7056 # Examples
7157 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7258 examples :
7359 name : cargo example
74- needs : [format, checks]
60+ needs : checks
7561 strategy :
7662 matrix :
7763 platform : ["${{ inputs.OS_VERS_MIN }}", "${{ inputs.OS_VERS_MAX }}"]
9884 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9985 tests-native :
10086 name : cargo test
101- needs : [format, checks]
87+ needs : checks
10288 strategy :
10389 matrix :
10490 platform : ["${{ inputs.OS_VERS_MIN }}", "${{ inputs.OS_VERS_MAX }}"]
@@ -125,7 +111,7 @@ jobs:
125111 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
126112 tests-docker :
127113 name : docker tests
128- needs : [format, checks]
114+ needs : checks
129115 strategy :
130116 matrix :
131117 branch : ["stable", "unstable", "bleeding-edge"]
@@ -144,7 +130,7 @@ jobs:
144130 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
145131 benches :
146132 name : benchmarks
147- needs : [format, checks]
133+ needs : checks
148134 strategy :
149135 matrix :
150136 platform : ["${{ inputs.OS_VERS_MIN }}", "${{ inputs.OS_VERS_MAX }}"]
@@ -171,7 +157,7 @@ jobs:
171157 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
172158 codecov :
173159 name : codecov
174- needs : [format, checks]
160+ needs : checks
175161 runs-on : ubuntu-${{ inputs.OS_VERS_MAX }}
176162 steps :
177163 - uses : actions/checkout@v7
0 commit comments