Skip to content

Commit

Permalink
Use manylinux2014 for building toolchain
Browse files Browse the repository at this point in the history
This allows the artifact to run on CentOS 7.
  • Loading branch information
nbdd0121 committed Feb 1, 2024
1 parent 89209fc commit 00d8df2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/toolchain_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,40 @@ jobs:
# output_dir: /opt/riscv-linux-toolchain

name: ${{ matrix.display_name }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
# This is a CentOS 7 based image
container: quay.io/pypa/manylinux2014_x86_64
timeout-minutes: 360

steps:
- uses: actions/checkout@v4
# This uses checkout v3 instead of v4 because GitHub actions's nodejs 20 currently does not work on CentOS 7.
- uses: actions/checkout@v3

- name: Setup environment
run: |
echo ::group::Install dependencies
./prepare-ubuntu-20.04.sh
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
echo ::endgroup::
echo ::group::Install crosstool-ng
./install-crosstool-ng.sh
echo ::endgroup::
Expand Down
2 changes: 2 additions & 0 deletions build-gcc-with-args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ cd "${build_top_dir}/build/gcc"
echo "# ADDED BY ${0}";
echo "CT_PREFIX_DIR=\"${toolchain_dest}\""
echo "CT_LOCAL_PATCH_DIR=\"${build_top_dir}/patches/${toolchain_name}\""
echo "CT_ALLOW_BUILD_AS_ROOT=y"
echo "CT_ALLOW_BUILD_AS_ROOT_SURE=y"
echo "# END ADDED BY ${0}"
} > .config
ct-ng upgradeconfig
Expand Down

0 comments on commit 00d8df2

Please sign in to comment.