File tree 2 files changed +51
-0
lines changed
2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 42
42
run : cargo install cargo-audit
43
43
- name : Execute cargo audit
44
44
run : cargo audit
45
+
46
+ mismatcher :
47
+ name : Check for mismatched dependencies (those that have more than one version)
48
+ runs-on : ubuntu-latest
49
+ steps :
50
+ - uses : actions/checkout@v3
51
+ with :
52
+ ref : " ${{ github.event.inputs.rev }}"
53
+ - name : Install Rust MSRV
54
+ uses : actions-rust-lang/setup-rust-toolchain@v1
55
+ with :
56
+ toolchain : stable
57
+ rustflags : " "
58
+ - name : Execute CI script
59
+ uses : ./.github/actions/ci_script
60
+ with :
61
+ ci-flags : " mismatcher"
Original file line number Diff line number Diff line change 5
5
6
6
set -xeuf -o pipefail
7
7
8
+ error_msg () {
9
+ echo " Error: $1 "
10
+ exit 1
11
+ }
12
+
8
13
# Points to Parsec's Unix Domain Socket on the CI
9
14
export PARSEC_SERVICE_ENDPOINT=" unix:/tmp/parsec.sock"
10
15
export RUST_LOG=error
11
16
17
+ # #################
18
+ # Get Parameters #
19
+ # #################
20
+ MISMATCHER=
21
+ while [ " $# " -gt 0 ]; do
22
+ case " $1 " in
23
+ mismatcher )
24
+ MISMATCHER=" True"
25
+ ;;
26
+ * )
27
+ error_msg " Unknown argument: $1 "
28
+ ;;
29
+ esac
30
+ shift
31
+ done
32
+
33
+ # ########################
34
+ # Dependency mismatcher #
35
+ # ########################
36
+ if [ " $MISMATCHER " = " True" ]; then
37
+ python3 $( pwd) /utils/dependency_cross_matcher.py --deps_dir $( pwd)
38
+ mismatcher_result=$?
39
+ if [ " $mismatcher_result " -ne 0 ]; then
40
+ error_msg " Found dependencies version mismatches"
41
+ fi
42
+
43
+ exit 0
44
+ fi
45
+
12
46
# ########
13
47
# Build #
14
48
# ########
You can’t perform that action at this time.
0 commit comments