Skip to content

Commit f983cca

Browse files
committed
ci: install the GitHub CLI tool
Signed-off-by: Esteve Fernandez <[email protected]>
1 parent eb6d06f commit f983cca

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/generate-bindings.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ jobs:
6565
- name: Install bindgen
6666
run: cargo binstall -y bindgen-cli
6767

68+
- name: Install GitHub CLI tool
69+
run: |
70+
(type -p wget >/dev/null || (sudo apt update && sudo apt install wget -y)) \
71+
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
72+
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
73+
&& cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
74+
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
75+
&& sudo mkdir -p -m 755 /etc/apt/sources.list.d \
76+
&& 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 \
77+
&& sudo apt update \
78+
&& sudo apt install gh -y
79+
6880
- name: Generate bindings
6981
run: |
7082
. /opt/ros/${{ matrix.ros_distribution }}/setup.sh

0 commit comments

Comments
 (0)