Skip to content

Commit 0a52d1f

Browse files
committed
ci: Install gh for test job
gh (GitHub CLI) is required for downloading artifacts in the test job. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent ccfb235 commit 0a52d1f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,9 +1460,17 @@ jobs:
14601460
- name: Set up test environment (Linux)
14611461
if: ${{ runner.os == 'Linux' }}
14621462
run: |
1463+
# Add GitHub CLI source
1464+
sudo mkdir -p -m 755 /etc/apt/keyrings
1465+
sudo curl -L -o /etc/apt/keyrings/githubcli-archive-keyring.gpg \
1466+
https://cli.github.com/packages/githubcli-archive-keyring.gpg
1467+
sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg
1468+
sudo mkdir -p -m 755 /etc/apt/sources.list.d
1469+
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
1470+
14631471
# Install required system packages
14641472
sudo apt-get update
1465-
sudo apt-get install -y dos2unix jq
1473+
sudo apt-get install -y dos2unix gh jq
14661474
14671475
# Set environment variables
14681476
echo "TAR=tar" >> $GITHUB_ENV
@@ -1471,6 +1479,9 @@ jobs:
14711479
- name: Set up test environment (macOS)
14721480
if: ${{ runner.os == 'macOS' }}
14731481
run: |
1482+
# Install required system packages
1483+
brew install gh
1484+
14741485
# Set environment variables
14751486
echo "TAR=gtar" >> $GITHUB_ENV
14761487
echo "ARTIFACT_ROOT=${GITHUB_WORKSPACE}/artifacts" >> $GITHUB_ENV
@@ -1479,7 +1490,7 @@ jobs:
14791490
if: ${{ runner.os == 'Windows' }}
14801491
run: |
14811492
# Install required system packages
1482-
choco install ccache dtc-msys2 gperf jq ninja wget 7zip
1493+
choco install ccache dtc-msys2 gh gperf jq ninja wget 7zip
14831494
14841495
# Enable long paths support for Git
14851496
git config --system core.longpaths true

0 commit comments

Comments
 (0)