Skip to content

Commit

Permalink
test as independent job
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
  • Loading branch information
ojeda committed Jun 18, 2024
1 parent b2d1512 commit 9e5fa43
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .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 @@ -153,6 +154,7 @@ jobs:
# `static` feature is not testable atm.
feature_runtime: [0, 1]
feature_extra_asserts: [0]
rust_for_linux_test: [0]

include:
# Test with extra asserts + docs just with latest llvm versions to
Expand Down Expand Up @@ -186,6 +188,15 @@ jobs:
release_build: 0
no_default_features: 0
feature_extra_asserts: 0

- os: ubuntu-latest
llvm_version: "16.0"
main_tests: 0
release_build: 0
no_default_features: 0
feature_extra_asserts: 0
rust_for_linux_test: 1

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -227,7 +238,7 @@ jobs:
BINDGEN_FEATURE_RUNTIME: ${{matrix.feature_runtime}}
BINDGEN_FEATURE_EXTRA_ASSERTS: ${{matrix.feature_extra_asserts}}
BINDGEN_NO_DEFAULT_FEATURES: ${{matrix.no_default_features}}
BINDGEN_RUST_FOR_LINUX_TEST: ${{matrix.os == 'ubuntu-latest' && matrix.llvm_version == '16.0' && matrix.feature_extra_asserts == 0 && 1 || 0}}
BINDGEN_RUST_FOR_LINUX_TEST: ${{matrix.rust_for_linux_test}}
run: ./ci/test.sh

check-cfg:
Expand Down

0 comments on commit 9e5fa43

Please sign in to comment.