Skip to content

Commit 9c421f0

Browse files
committed
ci: add coverage for system libxml2
1 parent 984b82e commit 9c421f0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

+16
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,22 @@ jobs:
3030
bundler-cache: true
3131
- run: bundle exec rake
3232

33+
cruby-nokogiri-system-libraries:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: ruby/setup-ruby@v1
38+
with:
39+
ruby-version: "3.1"
40+
- name: Install nokogiri with system libraries
41+
run: |
42+
sudo apt install pkg-config libxml2-dev libxslt-dev
43+
bundle config set force_ruby_platform true
44+
bundle config build.nokogiri --enable-system-libraries
45+
bundle install
46+
bundle exec nokogiri -v
47+
- run: bundle exec rake
48+
3349
jruby:
3450
continue-on-error: true # nokogiri on jruby has different behavior
3551
strategy:

0 commit comments

Comments
 (0)