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 <james.wainwright@lowrisc.org>
  • Loading branch information
jwnrt committed Feb 6, 2024
1 parent f1e485c commit db7209f
Show file tree
Hide file tree
Showing 2 changed files with 32 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
31 changes: 31 additions & 0 deletions prepare-centos-7.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/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

# Repository for the `gh` GitHub CLI tool used for creating releases.
yum-config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo

yum install -y \
sudo \
gh \
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 db7209f

Please sign in to comment.