Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/rust-target.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: rust-target

on:
push:
branches:
- main
pull_request:
branches:
- main
merge_group:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust-version: ["1.33", "1.36", "1.40", "1.43", "1.47", "1.59", "1.64", "1.68", "1.71", "1.73", "1.77", "nightly"]
steps:
- uses: actions/checkout@v4

- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust-version}}

- name: Install packages
run: |
sudo apt-get update
sudo apt-get install libtinfo5 ripgrep

- name: Check headers
run: |
HEADERS=$(rg -l '\-\-rust-target[\s=]${{matrix.rust-version}}' bindgen-tests/tests/headers/ | cut -d '/' -f 4 | cut -d '.' -f 1)

for HEADER in $HEADERS; do
FILE="bindgen-tests/tests/expectations/tests/$HEADER.rs"
echo "Checking $FILE"
rustup run ${{matrix.rust-version}} rustc --edition=2018 --crate-type=rlib --emit=metadata $FILE
done

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

104 changes: 0 additions & 104 deletions bindgen-tests/tests/expectations/tests/derive-debug-bitfield-core.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading