Does this work on Self-hosted runners in Github ?
We run this as our github self-hosted runners (amazon linux)
When I try to use this action I get nothing but errors: setup chromium latest Attempting to download latest... Acquiring 1151437 from https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F1151437%2Fchrome-linux.zip?alt=media Installing chromium... /usr/bin/unzip -o -q /home/ec2-user/actions-runner/_work/_temp/088a102b-e56d-4061-a208-d1fb5f199e43 Successfully Installed chromium to /home/ec2-user/actions-runner/_work/_tool/chromium/latest/x64 Successfully installed chromium to /home/ec2-user/actions-runner/_work/_tool/chromium/latest/x64/chrome /home/ec2-user/actions-runner/_work/_tool/chromium/latest/x64/chrome --version /home/ec2-user/actions-runner/_work/_tool/chromium/latest/x64/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory Error: The process '/home/ec2-user/actions-runner/_work/_tool/chromium/latest/x64/chrome' failed with exit code 127
Also If I want to install an older stable release how do I specify the version?
Try adding this step:
- name: Install Chrome Deps
run: |
sudo apt-get update
sudo apt-get install -y ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 \
libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 \
libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \
libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
lsb-release wget xdg-utils
Thanks for responding, also if I want to install a specific version of chrome so I can control the updates to match with chromedriver updates how do I specify a specific version of chrome to install?
According to https://github.com/browser-actions/setup-chrome#setup-chrome it looks like you can't specify a version yet, only a release channel.
Thanks again will try this :)
Try adding this step:
- name: Install Chrome Deps run: | sudo apt-get update sudo apt-get install -y ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 \ libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 \ libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \ libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \ lsb-release wget xdg-utils
This made the installation worked for me using Self Hosted Runner! Thanks