Skip to content
Snippets Groups Projects
Commit 73e03b90 authored by Cheng Shao's avatar Cheng Shao
Browse files

ci: use rocky8 for linux ghcup jobs

parent 5470dab1
No related branches found
No related tags found
1 merge request!97ci: use rocky8 for linux ghcup jobs
Pipeline #109769 passed with warnings
...@@ -206,19 +206,21 @@ aarch64-darwin-nix: ...@@ -206,19 +206,21 @@ aarch64-darwin-nix:
.linux-ghcup: .linux-ghcup:
extends: .ghcup extends: .ghcup
image: debian:12 image: rockylinux:8
before_script: before_script:
- | - |
apt update dnf upgrade -y
apt full-upgrade -y dnf install -y \
apt install -y \ epel-release
build-essential \ crb enable
curl \ dnf install -y \
chromium \ chromium \
firefox-esr \ firefox \
jq \ jq \
make \
unzip \ unzip \
zstd zstd
ln -s /etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt
x86_64-linux-ghcup: x86_64-linux-ghcup:
extends: .linux-ghcup extends: .linux-ghcup
......
...@@ -114,7 +114,7 @@ mkdir -p "$PREFIX/binaryen" ...@@ -114,7 +114,7 @@ mkdir -p "$PREFIX/binaryen"
curl -f -L --retry 5 "$(jq -r ".\"$BINARYEN\".url" "$REPO"/autogen.json)" | tar xz -C "$PREFIX/binaryen" --no-same-owner --strip-components=1 curl -f -L --retry 5 "$(jq -r ".\"$BINARYEN\".url" "$REPO"/autogen.json)" | tar xz -C "$PREFIX/binaryen" --no-same-owner --strip-components=1
mkdir -p "$PREFIX/wasmtime" mkdir -p "$PREFIX/wasmtime"
curl -f -L --retry 5 "$(jq -r ".\"$WASMTIME\".url" "$REPO"/autogen.json)" | tar x --zstd -C "$PREFIX/wasmtime" --no-same-owner --strip-components=1 curl -f -L --retry 5 "$(jq -r ".\"$WASMTIME\".url" "$REPO"/autogen.json)" | unzstd | tar x -C "$PREFIX/wasmtime" --no-same-owner --strip-components=1
mkdir -p "$PREFIX/wasm-run/bin" mkdir -p "$PREFIX/wasm-run/bin"
cp -a "$REPO"/wasm-run/*.mjs "$REPO"/wasm-run/*.sh "$PREFIX/wasm-run/bin" cp -a "$REPO"/wasm-run/*.mjs "$REPO"/wasm-run/*.sh "$PREFIX/wasm-run/bin"
......
...@@ -12,7 +12,7 @@ if [[ $FIREFOX_PATH != "" ]]; then ...@@ -12,7 +12,7 @@ if [[ $FIREFOX_PATH != "" ]]; then
echo -e "$GHCI_SCRIPT" | wasm32-wasi-ghc --interactive -fghci-browser -fghci-browser-puppeteer-launch-opts="{\"browser\":\"firefox\",\"executablePath\":\"$FIREFOX_PATH\"}" echo -e "$GHCI_SCRIPT" | wasm32-wasi-ghc --interactive -fghci-browser -fghci-browser-puppeteer-launch-opts="{\"browser\":\"firefox\",\"executablePath\":\"$FIREFOX_PATH\"}"
fi fi
CHROME_PATH=$(type -P google-chrome-stable || type -P chromium || echo "") CHROME_PATH=$(type -P google-chrome-stable || type -P chromium || type -P chromium-browser || echo "")
if [[ $CHROME_PATH != "" ]]; then if [[ $CHROME_PATH != "" ]]; then
echo -e "$GHCI_SCRIPT" | wasm32-wasi-ghc --interactive -fghci-browser -fghci-browser-puppeteer-launch-opts="{\"browser\":\"chrome\",\"protocol\":\"webDriverBiDi\",\"executablePath\":\"$CHROME_PATH\",\"args\":[\"--no-sandbox\"]}" echo -e "$GHCI_SCRIPT" | wasm32-wasi-ghc --interactive -fghci-browser -fghci-browser-puppeteer-launch-opts="{\"browser\":\"chrome\",\"protocol\":\"webDriverBiDi\",\"executablePath\":\"$CHROME_PATH\",\"args\":[\"--no-sandbox\"]}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment