From cd1b46c8f519756df6fe2a96f3f860839aa116e5 Mon Sep 17 00:00:00 2001 From: Jamil Date: Mon, 8 Jul 2024 19:56:24 -0700 Subject: [PATCH] fix(ci): Install GH CLI on arm runners (#5802) `main` failure: https://github.com/firezone/firezone/actions/runs/9847918080/job/27190842443 Opened an issue: https://github.com/actions/runner-images/issues/10192 gh cli instructions: https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian-ubuntu-linux-raspberry-pi-os-apt --- .github/workflows/_tauri.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_tauri.yml b/.github/workflows/_tauri.yml index 20aff7ad4..745fd1084 100644 --- a/.github/workflows/_tauri.yml +++ b/.github/workflows/_tauri.yml @@ -63,7 +63,20 @@ jobs: - uses: ./.github/actions/setup-node - uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-tauri - timeout-minutes: 5 + # Installing new packages can take time + timeout-minutes: 10 + # the arm64 images don't have the GH cli installed. + # Remove this when https://github.com/actions/runner-images/issues/10192 is resolved. + - name: Ubuntu arm workaround + if: ${{ matrix.runs-on == 'ubuntu-20.04-arm' }} + run: | + (type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \ + && sudo mkdir -p -m 755 /etc/apt/keyrings \ + && wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \ + && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ + && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ + && sudo apt update \ + && sudo apt install gh -y - name: Install pnpm deps run: pnpm install - name: Install AzureSignTool