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 911e4ed
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

sudo dnf install 'dnf-command(config-manager)'
sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
sudo dnf 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 911e4ed

Please sign in to comment.