diff --git a/.github/workflows/root-ci.yml b/.github/workflows/root-ci.yml index 1af2addfa21cf..0431e2f4318e2 100644 --- a/.github/workflows/root-ci.yml +++ b/.github/workflows/root-ci.yml @@ -121,6 +121,22 @@ jobs: with: ref: ${{ inputs.ref_name }} + # TODO: Install chrome + # Latest error: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper + # sudo: a password is required + # Error: Process completed with exit code 1. + # - name: Install Homebrew + # run: | + # sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + + # - name: Verify Installation + # run: | + # brew --version + + # - name: Install chrome + # run: | + # brew install --cask google-chrome + - name: Apply option overrides from matrix for this job for non-release builds if: ${{ github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && matrix.overrides != NaN }} env: @@ -414,6 +430,48 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ inputs.ref_name }} + + # - name: Install Chromium + # shell: bash + # run: | + # if [[ "${{ matrix.image }}" == "fedora39" ]]; then + # dnf install -y chromium + # elif [[ "${{ matrix.image }}" == "alma8" ]] || [[ "${{ matrix.image }}" == "alma9" ]] || [[ "${{ matrix.image }}" == "alma9-clang" ]]; then + # dnf install -y epel-release + # dnf install -y chromium + # elif [[ "${{ matrix.image }}" == "ubuntu20" ]] || [[ "${{ matrix.image }}" == "ubuntu22" ]] || [[ "${{ matrix.image }}" == "ubuntu2404" ]]; then + # apt update + # apt install -y snapd # Install snapd first + # systemctl start snapd # Ensure snapd is running + # snap install chromium + # elif [[ "${{ matrix.image }}" == "debian125" ]]; then + # apt update + # apt install -y chromium + # fi + + - name: Install Google Chrome + shell: bash + run: | + if [[ "${{ matrix.image }}" == "fedora39" ]]; then + dnf install -y dnf-plugins-core + dnf install fedora-workstation-repositories -y + dnf config-manager --set-enabled google-chrome + dnf install google-chrome-stable -y + elif [[ "${{ matrix.image }}" == "alma8" ]] || [[ "${{ matrix.image }}" == "alma9" ]] || [[ "${{ matrix.image }}" == "alma9-clang" ]]; then + dnf install -y wget + wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm + dnf install -y ./google-chrome-stable_current_x86_64.rpm + elif [[ "${{ matrix.image }}" == "ubuntu20" ]] || [[ "${{ matrix.image }}" == "ubuntu22" ]] || [[ "${{ matrix.image }}" == "ubuntu2404" ]]; then + apt update + apt install -y wget + wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb + apt install -y ./google-chrome-stable_current_amd64.deb + elif [[ "${{ matrix.image }}" == "debian125" ]]; then + apt update + apt install -y wget + wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb + apt install -y ./google-chrome-stable_current_amd64.deb + fi - name: Dump GitHub context env: