File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1212 - main
1313
1414jobs :
15+ name : Define matrix
1516 define-matrix :
1617 runs-on : ubuntu-latest
1718 outputs :
2627 setup=$(python ci/set_versions.py)
2728 echo "setup=$setup" >> $GITHUB_OUTPUT
2829
29- test :
30+ check-target :
31+ name : Testing target ${{matrix.setup.rust-version}}
3032 runs-on : ubuntu-latest
3133 needs : [define-matrix]
3234 strategy :
3941 - name : Install rust
4042 uses : dtolnay/rust-toolchain@master
4143 with :
42- toolchain : ${{matrix.rust-version}}
44+ toolchain : ${{matrix.setup. rust-version}}
4345
4446 - name : Install packages
4547 run : |
@@ -48,14 +50,14 @@ jobs:
4850
4951 - name : Check headers
5052 run : |
51- TARGET_VERSIONS=$(echo '${{matrix.target-versions}}' | jq ".[]" | tr -d '"')
53+ TARGET_VERSIONS=$(echo '${{matrix.setup. target-versions}}' | jq ".[]" | tr -d '"')
5254 for TARGET_VERSION in $TARGET_VERSIONS; do
5355 echo "Running checks for target version $TARGET_VERSION"
5456 HEADERS=$(rg -l '\-\-rust-target[\s=]$TARGET_VERSION' bindgen-tests/tests/headers/ | cut -d '/' -f 4 | cut -d '.' -f 1)
5557
5658 for HEADER in $HEADERS; do
5759 FILE="bindgen-tests/tests/expectations/tests/$HEADER.rs"
5860 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
6062 done
6163 done
You can’t perform that action at this time.
0 commit comments