[github-actions] install gn by apt (#12283)

This commit installs `gn` by the system's package manager instead of
directly downloading which seems not working now.
This commit is contained in:
Yakun Xu
2026-01-12 10:33:15 -08:00
committed by GitHub
parent 356ff345fe
commit 0b0cdc83cf
+1 -6
View File
@@ -339,14 +339,9 @@ jobs:
- name: Bootstrap
run: |
sudo apt-get update
sudo apt-get --no-install-recommends install -y ninja-build
cd /tmp
wget -O gn.zip https://chrome-infra-packages.appspot.com/dl/gn/gn/linux-amd64/+/latest
unzip -o gn.zip
chmod a+x gn && mkdir -p bin && mv -f gn bin/
sudo apt-get --no-install-recommends install -y ninja-build gn
- name: Build
run: |
export PATH=/tmp/bin:$PATH
script/check-gn-build
macos: