Skip to content

Commit 8009db3

Browse files
committed
👷 Set NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- Install libgumbo-dev for gumbo
1 parent 2ce7e4a commit 8009db3

5 files changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
LD_LIBRARY_PATH: "/usr/local/lib:/usr/lib/x86_64-linux-gnu:/usr/lib"
4747
TREE_SITTER_RUNTIME_LIB: "/usr/lib/x86_64-linux-gnu/libtree-sitter.so.0"
4848
TREE_SITTER_TOML_PATH: "/usr/local/lib/libtree-sitter-toml.so"
49+
# Force Nokogiri to use system libraries instead of bundled ones
50+
NOKOGIRI_USE_SYSTEM_LIBRARIES: "true"
4951
strategy:
5052
fail-fast: false
5153
matrix:
@@ -64,7 +66,7 @@ jobs:
6466
# tree_stump needs Rust toolchain (rustc/cargo)
6567
run: |
6668
sudo apt-get update
67-
sudo apt-get install -y build-essential pkg-config libxml2-dev libxslt1-dev liblzma-dev zlib1g-dev autoconf automake libtool
69+
sudo apt-get install -y build-essential pkg-config libxml2-dev libxslt1-dev liblzma-dev zlib1g-dev libgumbo-dev autoconf automake libtool
6870
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
6971
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
7072

.github/workflows/locked_deps.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ jobs:
6363
LD_LIBRARY_PATH: "/usr/local/lib:/usr/lib/x86_64-linux-gnu:/usr/lib"
6464
TREE_SITTER_RUNTIME_LIB: "/usr/lib/x86_64-linux-gnu/libtree-sitter.so.0"
6565
TREE_SITTER_TOML_PATH: "/usr/local/lib/libtree-sitter-toml.so"
66+
# Force Nokogiri to use system libraries instead of bundled ones
67+
NOKOGIRI_USE_SYSTEM_LIBRARIES: "true"
6668
strategy:
6769
fail-fast: false
6870
matrix:
@@ -80,7 +82,7 @@ jobs:
8082
# tree_stump needs Rust toolchain (rustc/cargo)
8183
run: |
8284
sudo apt-get update
83-
sudo apt-get install -y build-essential pkg-config libxml2-dev libxslt1-dev liblzma-dev zlib1g-dev autoconf automake libtool
85+
sudo apt-get install -y build-essential pkg-config libxml2-dev libxslt1-dev liblzma-dev zlib1g-dev libgumbo-dev autoconf automake libtool
8486
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
8587
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
8688

.github/workflows/style.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
3131
env: # $BUNDLE_GEMFILE must be set at job level, so it is set for all steps
3232
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}.gemfile
33+
# Force Nokogiri to use system libraries instead of bundled ones
34+
NOKOGIRI_USE_SYSTEM_LIBRARIES: "true"
3335
strategy:
3436
fail-fast: false
3537
matrix:
@@ -48,7 +50,7 @@ jobs:
4850
# tree_stump needs Rust toolchain (rustc/cargo)
4951
run: |
5052
sudo apt-get update
51-
sudo apt-get install -y build-essential pkg-config libxml2-dev libxslt1-dev liblzma-dev zlib1g-dev autoconf automake libtool
53+
sudo apt-get install -y build-essential pkg-config libxml2-dev libxslt1-dev liblzma-dev zlib1g-dev libgumbo-dev autoconf automake libtool
5254
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
5355
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
5456

.github/workflows/supported.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
LD_LIBRARY_PATH: "/usr/local/lib:/usr/lib/x86_64-linux-gnu:/usr/lib"
3939
TREE_SITTER_RUNTIME_LIB: "/usr/lib/x86_64-linux-gnu/libtree-sitter.so.0"
4040
TREE_SITTER_TOML_PATH: "/usr/local/lib/libtree-sitter-toml.so"
41+
# Force Nokogiri to use system libraries instead of bundled ones
42+
NOKOGIRI_USE_SYSTEM_LIBRARIES: "true"
4143
strategy:
4244
matrix:
4345
include:
@@ -71,7 +73,7 @@ jobs:
7173
# tree_stump needs Rust toolchain (rustc/cargo)
7274
run: |
7375
sudo apt-get update
74-
sudo apt-get install -y build-essential pkg-config libxml2-dev libxslt1-dev liblzma-dev zlib1g-dev autoconf automake libtool
76+
sudo apt-get install -y build-essential pkg-config libxml2-dev libxslt1-dev liblzma-dev zlib1g-dev libgumbo-dev autoconf automake libtool
7577
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
7678
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
7779

.github/workflows/unlocked_deps.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
LD_LIBRARY_PATH: "/usr/local/lib:/usr/lib/x86_64-linux-gnu:/usr/lib"
5656
TREE_SITTER_RUNTIME_LIB: "/usr/lib/x86_64-linux-gnu/libtree-sitter.so.0"
5757
TREE_SITTER_TOML_PATH: "/usr/local/lib/libtree-sitter-toml.so"
58+
# Force Nokogiri to use system libraries instead of bundled ones
59+
NOKOGIRI_USE_SYSTEM_LIBRARIES: "true"
5860
strategy:
5961
matrix:
6062
include:
@@ -72,7 +74,7 @@ jobs:
7274
# tree_stump needs Rust toolchain (rustc/cargo)
7375
run: |
7476
sudo apt-get update
75-
sudo apt-get install -y build-essential pkg-config libxml2-dev libxslt1-dev liblzma-dev zlib1g-dev autoconf automake libtool
77+
sudo apt-get install -y build-essential pkg-config libxml2-dev libxslt1-dev liblzma-dev zlib1g-dev libgumbo-dev autoconf automake libtool
7678
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
7779
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
7880

0 commit comments

Comments
 (0)