build: Add curl-impersonate

Added steps to build and install curl-impersonate for both Firefox and Chrome versions in the GitHub Actions workflow.
This commit is contained in:
Kroese 2026-03-23 14:50:10 +01:00 committed by GitHub
parent 07d32b34c0
commit ef1182eff1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,6 +21,30 @@ jobs:
uses: actions/checkout@v6 uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
-
name: Build curl-impersonate
run: |
sudo apt install build-essential pkg-config cmake ninja-build curl autoconf automake libtool
# For the Firefox version only
sudo apt install python3-pip libnss3
pip install gyp-next
export PATH="$PATH:~/.local/bin" # Add gyp to PATH
# For the Chrome version only
sudo apt install golang-go unzip
git clone https://github.com/lwthiker/curl-impersonate.git
cd curl-impersonate
mkdir build && cd build
../configure
# Build and install the Firefox version
make firefox-build
sudo make firefox-install
# Build and install the Chrome version
make chrome-build
sudo make chrome-install
# You may need to update the linker's cache to find libcurl-impersonate
sudo ldconfig
# Optionally remove all the build files
cd ../ && rm -Rf build
- -
name: Validate Links name: Validate Links
run: | run: |