Skip to content

Commit edf66d6

Browse files
wetnebdginev
authored andcommitted
Add CI job for default bindings
1 parent de95f57 commit edf66d6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/CI.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ jobs:
66
test:
77
name: rust-libxml CI
88
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
with_default_bindings: [false, true]
912
steps:
1013
- name: install dependencies
1114
uses: ryankurte/[email protected]
1215
with:
1316
packages: "libxml2-dev"
17+
- name: Set up LIBXML2 env var if compiling with the default bindings
18+
run: echo "LIBXML2=$(pkg-config libxml-2.0 --variable=libdir)/libxml2.so" >> "$GITHUB_ENV"
19+
if: ${{ matrix.with_default_bindings }}
1420
- uses: actions/checkout@v2
1521
- uses: actions-rs/toolchain@v1
1622
with:
@@ -20,4 +26,4 @@ jobs:
2026
- name: run tests
2127
uses: actions-rs/cargo@v1
2228
with:
23-
command: test
29+
command: test

0 commit comments

Comments
 (0)