fix(route/picnob): bring back support for diygod/rsshub:chromium-bundled (#20504)
* ci(docker-release): enable ZRAM to reduce memory pressure This should hopefully help reduce stuck build jobs. Note that this can't completely eliminate stuck builds since this is usually caused by synchronization issues in QEMU. Signed-off-by: Rongrong <i@rong.moe> * build(Dockerfile): Add support for puppeteer-real-browser Sets CHROMIUM_EXECUTABLE_PATH on AMD64 and installs essential dependencies. Signed-off-by: Rongrong <i@rong.moe> * fix(route/picnob): bring back support for diygod/rsshub:chromium-bundled The support for puppeteer-real-browser on diygod/rsshub:chromium-bundled was improperly implemented in400fb1fa49("fix(route/picnob): use puppeteer-real-browser to pass cf check (#20478)") and was then removed in2cb11d7c7e("fix(route/picnob): support img not in slide"). With proper support for puppeteer-real-browser added to Dockerfile, this patch brings back the support for diygod/rsshub:chromium-bundled. This partially reverts commit2cb11d7c7e("fix(route/picnob): support img not in slide"). Signed-off-by: Rongrong <i@rong.moe> * chore(route/picnob): add myself as maintainer This route explicitly consult CHROMIUM_EXECUTABLE_PATH from the docker image variant `diygod/rsshub:chromium-bundled`. Since I am the author of the image variant, add myself as one of route maintainers so that I am mentioned when the route is broken. Signed-off-by: Rongrong <i@rong.moe> # Conflicts: # lib/routes/picnob/user.ts --------- Signed-off-by: Rongrong <i@rong.moe>
This commit is contained in:
@@ -34,6 +34,16 @@ jobs:
|
||||
packages: write
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Enable ZRAM
|
||||
# Reduce memory pressure
|
||||
# PERCENT=100 is safe: https://fedoraproject.org/wiki/Changes/Scale_ZRAM_to_full_memory_size
|
||||
run: |
|
||||
sudo apt-get update -yq
|
||||
sudo apt-get install -yq "linux-modules-extra-$(uname -r)" zram-tools
|
||||
echo -e 'ALGO=lz4\nPERCENT=100' | sudo tee -a /etc/default/zramswap
|
||||
sudo systemctl restart zramswap
|
||||
swapon
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user