diff --git a/.github/workflows/toolchain_build.yml b/.github/workflows/toolchain_build.yml index d1b9bc6..c16df66 100644 --- a/.github/workflows/toolchain_build.yml +++ b/.github/workflows/toolchain_build.yml @@ -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 diff --git a/prepare-centos-7.sh b/prepare-centos-7.sh new file mode 100755 index 0000000..5bd795b --- /dev/null +++ b/prepare-centos-7.sh @@ -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