Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Ojeda <[email protected]>
  • Loading branch information
ojeda committed Jun 19, 2024
1 parent 366281e commit db3d40a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/bindgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- rfl-ci-test
pull_request:
branches:
- main
Expand Down Expand Up @@ -79,8 +80,8 @@ jobs:
toolchain: stable
override: true

- name: Check without default features
run: cargo check -p bindgen --no-default-features --features=runtime
- name: Check without default features
run: cargo check -p bindgen --no-default-features --features=runtime

docs:
runs-on: ubuntu-latest
Expand All @@ -96,10 +97,10 @@ jobs:
toolchain: stable
override: true

- name: Generate documentation for `bindgen`
run: cargo doc --document-private-items --no-deps -p bindgen
- name: Generate documentation for `bindgen`
run: cargo doc --document-private-items --no-deps -p bindgen

- name: Generate documentation for `bindgen-cli`
- name: Generate documentation for `bindgen-cli`
run: cargo doc --document-private-items --no-deps -p bindgen-cli

quickchecking:
Expand Down Expand Up @@ -236,14 +237,14 @@ jobs:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v3

- name: Install nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

- name: Check cfg
run: cargo check -Z unstable-options -Z check-cfg

Expand Down
6 changes: 6 additions & 0 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ if [ "$BINDGEN_RUST_FOR_LINUX_TEST" == "1" ]; then
# go first since there are others in the Ubuntu image.
export PATH="${LLVM_DIRECTORY}/bin:${PATH}"

command -v bindgen

# Kernel build dependency: `bindgen-cli`, which is under test.
#
# Using `cargo build` (and adding the two common profiles to the `$PATH`) so
Expand All @@ -141,6 +143,10 @@ if [ "$BINDGEN_RUST_FOR_LINUX_TEST" == "1" ]; then
(cd bindgen-cli && cargo build $CARGO_ARGS)
export PATH="${PWD}/target/release:${PWD}/target/debug:${PATH}"

echo "PWD = $PWD"
echo "HOME = $HOME"
echo "PATH = $PATH"
command -v bindgen
bindgen --version --verbose

# Kernel build dependency: `libelf-dev`.
Expand Down

0 comments on commit db3d40a

Please sign in to comment.