From 27bc1d7a505847dabaabc7b3835c92cfd31b59b6 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Wed, 24 Jan 2024 15:02:29 +0000 Subject: [PATCH] Test manylinux2014 --- .github/workflows/toolchain_build.yml | 27 ++-- azure-pipelines.yml | 172 -------------------------- build-gcc-with-args.sh | 1 + 3 files changed, 18 insertions(+), 182 deletions(-) delete mode 100644 azure-pipelines.yml diff --git a/.github/workflows/toolchain_build.yml b/.github/workflows/toolchain_build.yml index 34a9f97..3529f12 100644 --- a/.github/workflows/toolchain_build.yml +++ b/.github/workflows/toolchain_build.yml @@ -25,13 +25,13 @@ jobs: march: rv32imc_zba_zbb_zbc_zbs mabi: ilp32 mcmodel: medany - - name: rv64imac - display_name: GCC and Clang/LLVM toolchains targeting RV64IMAC (Muntjac) - target: riscv64-unknown-elf - output_dir: /tools/riscv - march: rv64imac - mabi: lp64 - mcmodel: medany +# - name: rv64imac +# display_name: GCC and Clang/LLVM toolchains targeting RV64IMAC (Muntjac) +# target: riscv64-unknown-elf +# output_dir: /tools/riscv +# march: rv64imac +# mabi: lp64 +# mcmodel: medany # - name: multilib-baremetal # display_name: RV64 GCC (Multilib Baremetal) # target: riscv64-unknown-elf @@ -42,16 +42,23 @@ jobs: # output_dir: /opt/riscv-linux-toolchain name: ${{ matrix.display_name }} - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest + container: quay.io/pypa/manylinux2014_x86_64 timeout-minutes: 360 steps: - - uses: actions/checkout@v4 + # - name: Download Node.js 20 + # run: | + # curl -sL https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-musl.tar.xz | \ + # tar -xJ --strip-component=1 -C /usr + + - uses: actions/checkout@v3 - name: Setup environment run: | + yum install sudo -y echo ::group::Install dependencies - ./prepare-ubuntu-20.04.sh + ./prepare-centos6.sh ./install-crosstool-ng.sh echo ::endgroup:: diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 0b81e05..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,172 +0,0 @@ -# Azure Pipelines CI build configuration -# Documentation at https://aka.ms/yaml - -trigger: - batch: true - branches: - include: - - 'master' - tags: - include: - - '*' -pr: - branches: - include: - - '*' - -jobs: -- job: "Toolchains_RV32IMCB" - displayName: "Toolchains targeting Ibex with bit-manipulation extensions" - # These builds are using the ratified bitmanip extensions, version 1.0: Zba, - # Zbb, Zbc, and Zbs. - pool: - vmImage: "ubuntu-20.04" - container: lowrisc/lowrisc-base-centos6:latest - timeoutInMinutes: 360 - steps: - - template: "_build-deps.yml" - - - bash: | - sudo mkdir -p /tools/riscv - sudo chmod 0777 /tools/riscv - displayName: "Prepare toolchain destination directory" - - - bash: | - ./build-gcc-with-args.sh \ - "lowrisc-toolchain-gcc-rv32imcb" \ - "riscv32-unknown-elf" \ - "/tools/riscv" \ - "rv32imc_zba_zbb_zbc_zbs" \ - "ilp32" "medany" - displayName: 'Build GCC toolchain' - env: - ARTIFACT_STAGING_DIR: $(Build.ArtifactStagingDirectory) - RELEASE_TAG: $(ReleaseTag) - - - bash: | - ./build-clang-with-args.sh \ - "lowrisc-toolchain-rv32imcb" \ - "riscv32-unknown-elf" \ - "/tools/riscv" \ - "rv32imc_zba_zbb_zbc_zbs" \ - "ilp32" "medany" "" - displayName: "Build Clang toolchain" - env: - ARTIFACT_STAGING_DIR: $(Build.ArtifactStagingDirectory) - RELEASE_TAG: $(ReleaseTag) - - - template: "_upload-artifacts.yml" - parameters: - azure_name: rv32imcb-toolchains - -- job: "Toolchains_RV64IMAC" - displayName: "GCC and Clang/LLVM toolchains targeting RV64IMAC (Muntjac)" - pool: - vmImage: "ubuntu-20.04" - container: lowrisc/lowrisc-base-centos6:latest - timeoutInMinutes: 360 - steps: - - template: "_build-deps.yml" - - - bash: | - sudo mkdir -p /tools/riscv - sudo chmod 0777 /tools/riscv - displayName: "Prepare toolchain destination directory" - - - bash: | - ./build-gcc-with-args.sh \ - "lowrisc-toolchain-gcc-rv64imac" \ - "riscv64-unknown-elf" \ - "/tools/riscv" \ - "rv64imac" "lp64" "medany" - displayName: 'Build GCC toolchain' - env: - ARTIFACT_STAGING_DIR: $(Build.ArtifactStagingDirectory) - RELEASE_TAG: $(ReleaseTag) - - - bash: | - ./build-clang-with-args.sh \ - "lowrisc-toolchain-rv64imac" \ - "riscv64-unknown-elf" \ - "/tools/riscv" \ - "rv64imac" "lp64" "medany" - displayName: "Build Clang toolchain" - env: - ARTIFACT_STAGING_DIR: $(Build.ArtifactStagingDirectory) - RELEASE_TAG: $(ReleaseTag) - - - template: "_upload-artifacts.yml" - parameters: - azure_name: rv64imac-toolchains - -- job: "GCC_Multilib_Baremetal" - displayName: "RV64 GCC (Multilib Baremetal)" - condition: false - pool: - vmImage: "ubuntu-16.04" - timeoutInMinutes: 360 - steps: - - template: "_build-deps.yml" - - - bash: | - ./build-gcc-with-args.sh \ - "lowrisc-toolchain-gcc-multilib-baremetal" \ - "riscv64-unknown-elf" \ - "/opt/riscv-baremetal-toolchain" - displayName: 'Build GCC toolchain' - env: - ARTIFACT_STAGING_DIR: $(Build.ArtifactStagingDirectory) - RELEASE_TAG: $(ReleaseTag) - - - bash: | - ./build-clang-with-args.sh \ - "lowrisc-toolchain-gcc-multilib-baremetal" \ - "riscv64-unknown-elf" \ - "/opt/riscv-baremetal-toolchain" - displayName: "Build Clang toolchain" - env: - ARTIFACT_STAGING_DIR: $(Build.ArtifactStagingDirectory) - RELEASE_TAG: $(ReleaseTag) - - - template: "_upload-artifacts.yml" - parameters: - azure_name: gcc-multilib-baremetal - -- job: "GCC_Multilib_Linux" - displayName: "RV64 GCC (Multilib Linux)" - condition: false - pool: - vmImage: "ubuntu-20.04" - container: lowrisc/lowrisc-base-centos6:latest - timeoutInMinutes: 360 - steps: - - template: "_build-deps.yml" - - - bash: | - sudo mkdir -p /tools/riscv - sudo chmod 0777 /tools/riscv - displayName: "Prepare toolchain destination directory" - - - bash: | - ./build-gcc-with-args.sh \ - "lowrisc-toolchain-gcc-multilib-linux" \ - "riscv64-unknown-linux-gnu" \ - "/opt/riscv-linux-toolchain" - displayName: 'Build GCC toolchain' - env: - ARTIFACT_STAGING_DIR: $(Build.ArtifactStagingDirectory) - RELEASE_TAG: $(ReleaseTag) - - - bash: | - ./build-clang-with-args.sh \ - "lowrisc-toolchain-gcc-multilib-linux" \ - "riscv64-unknown-linux-gnu" \ - "/opt/riscv-linux-toolchain" - displayName: "Build Clang toolchain" - env: - ARTIFACT_STAGING_DIR: $(Build.ArtifactStagingDirectory) - RELEASE_TAG: $(ReleaseTag) - - - template: "_upload-artifacts.yml" - parameters: - azure_name: gcc-multilib-linux diff --git a/build-gcc-with-args.sh b/build-gcc-with-args.sh index 64f2801..b9257c5 100755 --- a/build-gcc-with-args.sh +++ b/build-gcc-with-args.sh @@ -64,6 +64,7 @@ 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 "# END ADDED BY ${0}" } > .config ct-ng upgradeconfig