mirror of
https://github.com/dockur/windows.git
synced 2026-05-06 14:41:24 +00:00
Remove Chrome build steps from links.yml
Removed Chrome build and installation steps from the workflow.
This commit is contained in:
parent
ef1182eff1
commit
c77d4cdde3
1 changed files with 2 additions and 7 deletions
9
.github/workflows/links.yml
vendored
9
.github/workflows/links.yml
vendored
|
|
@ -29,8 +29,6 @@ jobs:
|
||||||
sudo apt install python3-pip libnss3
|
sudo apt install python3-pip libnss3
|
||||||
pip install gyp-next
|
pip install gyp-next
|
||||||
export PATH="$PATH:~/.local/bin" # Add gyp to PATH
|
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
|
git clone https://github.com/lwthiker/curl-impersonate.git
|
||||||
cd curl-impersonate
|
cd curl-impersonate
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
|
|
@ -38,9 +36,6 @@ jobs:
|
||||||
# Build and install the Firefox version
|
# Build and install the Firefox version
|
||||||
make firefox-build
|
make firefox-build
|
||||||
sudo make firefox-install
|
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
|
# You may need to update the linker's cache to find libcurl-impersonate
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
# Optionally remove all the build files
|
# Optionally remove all the build files
|
||||||
|
|
@ -54,9 +49,9 @@ jobs:
|
||||||
declare -A seen
|
declare -A seen
|
||||||
check() {
|
check() {
|
||||||
local url="$1" http
|
local url="$1" http
|
||||||
http=$(curl -sSL -o /dev/null -w "%{http_code}" --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0)" --max-time 10 -I -- "$url" 2>&1) || http="000"
|
http=$(curl_ff117 -sSL -o /dev/null -w "%{http_code}" --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0)" --max-time 10 -I -- "$url" 2>&1) || http="000"
|
||||||
[[ "$http" == 2* ]] && return 0
|
[[ "$http" == 2* ]] && return 0
|
||||||
http=$(curl -sSL -o /dev/null -w "%{http_code}" --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0)" --max-time 10 -r "0-0" -- "$url" 2>&1) || http="000"
|
http=$(curl_ff117 -sSL -o /dev/null -w "%{http_code}" --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0)" --max-time 10 -r "0-0" -- "$url" 2>&1) || http="000"
|
||||||
printf '%s\n' "HTTP: $http"
|
printf '%s\n' "HTTP: $http"
|
||||||
[[ "$http" == 2* ]]
|
[[ "$http" == 2* ]]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue