Skip to content

Commit 15b7b3c

Browse files
committed
Fix
1 parent c0d3b18 commit 15b7b3c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/rust-target.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313

1414
jobs:
1515
define-matrix:
16+
name: Define matrix
1617
runs-on: ubuntu-latest
1718
outputs:
1819
setup: ${{ steps.define-setup.outputs.setup }}
@@ -26,7 +27,8 @@ jobs:
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:
@@ -39,7 +41,7 @@ jobs:
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

0 commit comments

Comments
 (0)