Skip to content

Commit d278bf7

Browse files
jwnrtluismarques
authored andcommitted
Install gh CLI on centos 7
Signed-off-by: James Wainwright <[email protected]>
1 parent f1e485c commit d278bf7

File tree

2 files changed

+32
-19
lines changed

2 files changed

+32
-19
lines changed

.github/workflows/toolchain_build.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,25 +54,7 @@ jobs:
5454
- name: Setup environment
5555
run: |
5656
echo ::group::Install dependencies
57-
yum install -y \
58-
sudo \
59-
git \
60-
shadow-utils \
61-
bison \
62-
flex \
63-
texinfo \
64-
help2man \
65-
gawk \
66-
gettext \
67-
curl \
68-
xz \
69-
ncurses-devel \
70-
ncurses-static \
71-
pixman-devel \
72-
rh-python36 \
73-
zlib-devel \
74-
zlib-static \
75-
libffi-devel
57+
./prepare-centos-7.sh
7658
echo ::endgroup::
7759
7860
echo ::group::Install crosstool-ng

prepare-centos-7.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
# Copyright lowRISC contributors.
3+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
set -e
7+
set -x
8+
9+
# Repository for the `gh` GitHub CLI tool used for creating releases.
10+
yum-config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
11+
12+
yum install -y \
13+
sudo \
14+
gh \
15+
git \
16+
shadow-utils \
17+
bison \
18+
flex \
19+
texinfo \
20+
help2man \
21+
gawk \
22+
gettext \
23+
curl \
24+
xz \
25+
ncurses-devel \
26+
ncurses-static \
27+
pixman-devel \
28+
rh-python36 \
29+
zlib-devel \
30+
zlib-static \
31+
libffi-devel

0 commit comments

Comments
 (0)