File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 13
13
14
14
jobs :
15
15
define-matrix :
16
+ name : Define matrix
16
17
runs-on : ubuntu-latest
17
18
outputs :
18
19
setup : ${{ steps.define-setup.outputs.setup }}
26
27
setup=$(python ci/set_versions.py)
27
28
echo "setup=$setup" >> $GITHUB_OUTPUT
28
29
29
- test :
30
+ check-target :
31
+ name : Testing target ${{matrix.setup.rust-version}}
30
32
runs-on : ubuntu-latest
31
33
needs : [define-matrix]
32
34
strategy :
39
41
- name : Install rust
40
42
uses : dtolnay/rust-toolchain@master
41
43
with :
42
- toolchain : ${{matrix.rust-version}}
44
+ toolchain : ${{matrix.setup. rust-version}}
43
45
44
46
- name : Install packages
45
47
run : |
@@ -48,14 +50,14 @@ jobs:
48
50
49
51
- name : Check headers
50
52
run : |
51
- TARGET_VERSIONS=$(echo '${{matrix.target-versions}}' | jq ".[]" | tr -d '"')
53
+ TARGET_VERSIONS=$(echo '${{matrix.setup. target-versions}}' | jq ".[]" | tr -d '"')
52
54
for TARGET_VERSION in $TARGET_VERSIONS; do
53
55
echo "Running checks for target version $TARGET_VERSION"
54
56
HEADERS=$(rg -l '\-\-rust-target[\s=]$TARGET_VERSION' bindgen-tests/tests/headers/ | cut -d '/' -f 4 | cut -d '.' -f 1)
55
57
56
58
for HEADER in $HEADERS; do
57
59
FILE="bindgen-tests/tests/expectations/tests/$HEADER.rs"
58
60
echo "Checking $FILE"
59
- rustup run ${{matrix.rust-version}} rustc --edition=2018 --crate-type=rlib --emit=metadata $FILE
61
+ rustup run ${{matrix.setup. rust-version}} rustc --edition=2018 --crate-type=rlib --emit=metadata $FILE
60
62
done
61
63
done
You can’t perform that action at this time.
0 commit comments