Skip to content

Commit

Permalink
Install gh CLI on centos 7
Browse files Browse the repository at this point in the history
Signed-off-by: James Wainwright <[email protected]>
  • Loading branch information
jwnrt committed Feb 6, 2024
1 parent f1e485c commit 0f0b79b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/toolchain_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,7 @@ jobs:
- name: Setup environment
run: |
echo ::group::Install dependencies
yum install -y \
sudo \
git \
shadow-utils \
bison \
flex \
texinfo \
help2man \
gawk \
gettext \
curl \
xz \
ncurses-devel \
ncurses-static \
pixman-devel \
rh-python36 \
zlib-devel \
zlib-static \
libffi-devel
./prepare-centos-7.sh
echo ::endgroup::
echo ::group::Install crosstool-ng
Expand Down
30 changes: 30 additions & 0 deletions prepare-centos-7.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

set -e
set -x

yum-config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
yum install gh

yum install -y \
sudo \
git \
shadow-utils \
bison \
flex \
texinfo \
help2man \
gawk \
gettext \
curl \
xz \
ncurses-devel \
ncurses-static \
pixman-devel \
rh-python36 \
zlib-devel \
zlib-static \
libffi-devel

0 comments on commit 0f0b79b

Please sign in to comment.