Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use manylinux2014 for building toolchain #73

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading