diff --git a/.github/actions/run-in-manylinux-aarch64/action.yml b/.github/actions/run-in-manylinux-aarch64/action.yml deleted file mode 100644 index 922e9059..00000000 --- a/.github/actions/run-in-manylinux-aarch64/action.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: 'Run in ManyLinux aarch64 Container' -description: 'Build Wheels inside ManyLinux 2014 aarch64 container' -branding: - color: blue - icon: upload-cloud -inputs: - script: - description: 'Path to the script' - required: true -runs: - using: 'docker' - image: 'manylinux_aarch64.Dockerfile' - args: - - ${{ inputs.script }} diff --git a/.github/actions/run-in-manylinux-aarch64/entry.sh b/.github/actions/run-in-manylinux-aarch64/entry.sh deleted file mode 100755 index 918a0176..00000000 --- a/.github/actions/run-in-manylinux-aarch64/entry.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -bash -x "$1" \ No newline at end of file diff --git a/.github/actions/run-in-manylinux-aarch64/manylinux_aarch64.Dockerfile b/.github/actions/run-in-manylinux-aarch64/manylinux_aarch64.Dockerfile deleted file mode 100644 index f363888a..00000000 --- a/.github/actions/run-in-manylinux-aarch64/manylinux_aarch64.Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM quay.io/pypa/manylinux2014_aarch64 -COPY entry.sh /entry.sh -ENTRYPOINT ["bash", "/entry.sh"] diff --git a/.github/actions/run-in-manylinux-x86-64/action.yml b/.github/actions/run-in-manylinux-x86-64/action.yml deleted file mode 100644 index 3de145d1..00000000 --- a/.github/actions/run-in-manylinux-x86-64/action.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: 'Run in ManyLinux x86_64 Container' -description: 'Build Wheels inside ManyLinux 2014 x86_64 container' -branding: - color: blue - icon: upload-cloud -inputs: - script: - description: 'Path to the script' - required: true -runs: - using: 'docker' - image: 'manylinux_x86_64.Dockerfile' - args: - - ${{ inputs.script }} diff --git a/.github/actions/run-in-manylinux-x86-64/entry.sh b/.github/actions/run-in-manylinux-x86-64/entry.sh deleted file mode 100755 index 918a0176..00000000 --- a/.github/actions/run-in-manylinux-x86-64/entry.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -bash -x "$1" \ No newline at end of file diff --git a/.github/actions/run-in-manylinux-x86-64/manylinux_x86_64.Dockerfile b/.github/actions/run-in-manylinux-x86-64/manylinux_x86_64.Dockerfile deleted file mode 100644 index aa19f551..00000000 --- a/.github/actions/run-in-manylinux-x86-64/manylinux_x86_64.Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM quay.io/pypa/manylinux2014_x86_64 -COPY entry.sh /entry.sh -ENTRYPOINT ["bash", "/entry.sh"] diff --git a/.github/actions/run-in-manylinux/action.yml b/.github/actions/run-in-manylinux/action.yml deleted file mode 100644 index 1037aae1..00000000 --- a/.github/actions/run-in-manylinux/action.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: 'Run in ManyLinux Container' -description: 'Build Wheels inside ManyLinux 2014 container' -branding: - color: blue - icon: upload-cloud -inputs: - script: - description: 'Path to the script' - required: true - arch: - description: 'manylinux container architecture. one of [amd64, arm64]' - required: true -runs: - using: 'composite' - steps: - - name: setup qemu for arm64 architecture - if: ${{ inputs.arch == 'arm64' }} - uses: docker/setup-qemu-action@v3 - with: - platforms: ${{ inputs.arch }} - - - name: run script (amd64) - if: ${{ inputs.arch == 'amd64' }} - uses: ./.github/actions/run-in-manylinux-x86-64 - with: - script: ${{ inputs.script }} - - name: run script (arm64) - if: ${{ inputs.arch == 'arm64' }} - uses: ./.github/actions/run-in-manylinux-aarch64 - with: - script: ${{ inputs.script }} diff --git a/python/build-wheels-manylinux-pgo.sh b/python/build-wheels-manylinux-pgo.sh deleted file mode 100644 index c1d78c96..00000000 --- a/python/build-wheels-manylinux-pgo.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash -set -ex - -# Build wheels with PGO, inside a manylinux container (https://github.com/pypa/manylinux) -# see also "build-wheels-manylinux.sh" - -DIR=$(dirname "$(readlink -f "$0")") - -curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y --no-modify-path --component llvm-tools-preview -export PATH="$HOME/.cargo/bin:$PATH" - -cd "$DIR/.." - -TARGET_TRIPLE=$(rustc -vV | awk '/^host/ {print $2}') -PROFDATA=/tmp/sudachi-profdata - -# Compile Binary that will generate PGO data -RUSTFLAGS="-C profile-generate=$PROFDATA -C opt-level=3" \ - cargo build --release -p sudachi-cli --target=$TARGET_TRIPLE - -# Download Kyoto Leads corpus original texts -curl -L https://github.com/ku-nlp/KWDLC/releases/download/release_1_0/leads.org.txt.gz | gzip -dc > leads.txt - -# Generate Profile -target/$TARGET_TRIPLE/release/sudachi -o /dev/null leads.txt -target/$TARGET_TRIPLE/release/sudachi --wakati --mode=A -o /dev/null leads.txt -target/$TARGET_TRIPLE/release/sudachi --all --mode=B -o /dev/null leads.txt - -# Generate Merged PGO data -"$HOME/.rustup/toolchains/stable-$TARGET_TRIPLE/lib/rustlib/$TARGET_TRIPLE/bin/llvm-profdata" \ - merge -o /tmp/sudachi-profdata.merged "$PROFDATA" - -cd "$DIR" - -export RUSTFLAGS='-C profile-use=/tmp/sudachi-profdata.merged -C opt-level=3' -export CARGO_BUILD_TARGET=$TARGET_TRIPLE - -# see following link for the list of cpython bin -# https://github.com/pypa/manylinux?tab=readme-ov-file#image-content -for PYBIN in /opt/python/cp{37,38,39,310,311,312,313}-*/bin; do - "${PYBIN}/pip" install -U setuptools wheel setuptools-rust - find . -iname 'sudachipy*.so' - rm -f build/lib/sudachipy/sudachipy*.so - "${PYBIN}/pip" wheel . --no-build-isolation -vvv --wheel-dir ./dist -done - -for whl in dist/*.whl; do - auditwheel repair "$whl" -w dist/ -done diff --git a/python/build-wheels-manylinux.sh b/python/build-wheels-manylinux.sh deleted file mode 100644 index cfbdcaf1..00000000 --- a/python/build-wheels-manylinux.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -set -ex - -# Build wheels, inside a manylinux container (https://github.com/pypa/manylinux) -# see also "build-wheels-manylinux-pgo.sh" - -DIR=$(dirname "$(readlink -f "$0")") - -curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y --no-modify-path --component llvm-tools-preview -export PATH="$HOME/.cargo/bin:$PATH" - -TARGET_TRIPLE=$(rustc -vV | awk '/^host/ {print $2}') - -cd "$DIR" - -export RUSTFLAGS='-C opt-level=3' -export CARGO_BUILD_TARGET=$TARGET_TRIPLE - -# see following link for the list of cpython bin -# https://github.com/pypa/manylinux?tab=readme-ov-file#image-content -for PYBIN in /opt/python/cp{37,38,39,310,311,312,313}-*/bin; do - "${PYBIN}/pip" install -U setuptools wheel setuptools-rust - find . -iname 'sudachipy*.so' - rm -f build/lib/sudachipy/sudachipy*.so - "${PYBIN}/pip" wheel . --no-build-isolation -vvv --wheel-dir ./dist -done - -for whl in dist/*.whl; do - auditwheel repair "$whl" -w dist/ -done