@@ -3099,3 +3099,164 @@ jobs:
30993099 name : torch-macos-aarch64
31003100 path : torch*.whl
31013101 if-no-files-found : error
3102+ opt_einsum-linux-amd64 :
3103+ runs-on :
3104+ - self-hosted
3105+ - Linux
3106+ - X64
3107+ container : quay.io/pypa/manylinux_2_28_x86_64
3108+ needs : torch-linux-amd64
3109+ if : inputs.name == '' || inputs.name == 'opt_einsum'
3110+ steps :
3111+ - name : Install dependencies
3112+ run : |
3113+ dnf install -y epel-release
3114+ crb enable
3115+ dnf makecache --refresh
3116+ dnf module install -y nodejs:18
3117+ dnf install -y /usr/bin/patch
3118+ - name : Checkout
3119+ uses : actions/checkout@v3
3120+ - name : Setup custom GraalPy
3121+ if : inputs.graalpy != ''
3122+ run : |-
3123+ curl -L -o graalpy.tar.gz ${{ inputs.graalpy }}-linux-amd64.tar.gz
3124+ mkdir -p graalpy
3125+ tar -C $(pwd)/graalpy --strip-components=1 -xzf graalpy.tar.gz
3126+ graalpy/bin/graalpy -s -m ensurepip
3127+ graalpy/bin/graalpy -m pip install wheel
3128+ - name : Setup GraalPy
3129+ uses : actions/setup-python@main
3130+ if : inputs.graalpy == ''
3131+ with :
3132+ python-version : graalpy23.1
3133+ - name : Setup local GraalPy venv
3134+ if : inputs.graalpy == ''
3135+ run : python -m venv graalpy
3136+ - name : Download artifacts from torch
3137+ uses : actions/download-artifact@v3
3138+ with :
3139+ name : torch-linux-amd64
3140+ - name : Build wheel
3141+ run : |-
3142+ export PIP_FIND_LINKS=$(pwd)
3143+ export PATH=$(pwd)/graalpy/bin/:$PATH
3144+ graalpy/bin/graalpy -m pip wheel --find-links $(pwd) opt_einsum
3145+ - name : Store wheels
3146+ uses : umutozd/upload-artifact@5c459179e7745e2c730c50b10a6459da0b6f25db
3147+ with :
3148+ name : opt_einsum-linux-amd64
3149+ path : opt*einsum*.whl
3150+ if-no-files-found : error
3151+ keras_preprocessing-linux-amd64 :
3152+ runs-on :
3153+ - self-hosted
3154+ - Linux
3155+ - X64
3156+ container : quay.io/pypa/manylinux_2_28_x86_64
3157+ needs : opt_einsum-linux-amd64
3158+ if : inputs.name == '' || inputs.name == 'keras_preprocessing'
3159+ steps :
3160+ - name : Install dependencies
3161+ run : |
3162+ dnf install -y epel-release
3163+ crb enable
3164+ dnf makecache --refresh
3165+ dnf module install -y nodejs:18
3166+ dnf install -y /usr/bin/patch
3167+ - name : Checkout
3168+ uses : actions/checkout@v3
3169+ - name : Setup custom GraalPy
3170+ if : inputs.graalpy != ''
3171+ run : |-
3172+ curl -L -o graalpy.tar.gz ${{ inputs.graalpy }}-linux-amd64.tar.gz
3173+ mkdir -p graalpy
3174+ tar -C $(pwd)/graalpy --strip-components=1 -xzf graalpy.tar.gz
3175+ graalpy/bin/graalpy -s -m ensurepip
3176+ graalpy/bin/graalpy -m pip install wheel
3177+ - name : Setup GraalPy
3178+ uses : actions/setup-python@main
3179+ if : inputs.graalpy == ''
3180+ with :
3181+ python-version : graalpy23.1
3182+ - name : Setup local GraalPy venv
3183+ if : inputs.graalpy == ''
3184+ run : python -m venv graalpy
3185+ - name : Download artifacts from opt_einsum
3186+ uses : actions/download-artifact@v3
3187+ with :
3188+ name : opt_einsum-linux-amd64
3189+ - name : Build wheel
3190+ run : |-
3191+ export PIP_FIND_LINKS=$(pwd)
3192+ export PATH=$(pwd)/graalpy/bin/:$PATH
3193+ graalpy/bin/graalpy -m pip wheel --find-links $(pwd) keras_preprocessing
3194+ - name : Store wheels
3195+ uses : umutozd/upload-artifact@5c459179e7745e2c730c50b10a6459da0b6f25db
3196+ with :
3197+ name : keras_preprocessing-linux-amd64
3198+ path : keras*preprocessing*.whl
3199+ if-no-files-found : error
3200+ tensorflow-linux-amd64 :
3201+ runs-on :
3202+ - self-hosted
3203+ - Linux
3204+ - X64
3205+ container : quay.io/pypa/manylinux_2_28_x86_64
3206+ needs :
3207+ - opt_einsum-linux-amd64
3208+ - keras_preprocessing-linux-amd64
3209+ if : inputs.name == '' || inputs.name == 'tensorflow'
3210+ steps :
3211+ - name : Install dependencies
3212+ run : |-
3213+ dnf install -y epel-release
3214+ crb enable
3215+ dnf makecache --refresh
3216+ dnf module install -y nodejs:18
3217+ dnf install -y /usr/bin/patch
3218+ dnf install -y openblas-devel /usr/bin/cmake /usr/bin/sudo /usr/bin/curl java-11-openjdk-devel
3219+ - name : Checkout
3220+ uses : actions/checkout@v3
3221+ - name : Setup custom GraalPy
3222+ if : inputs.graalpy != ''
3223+ run : |-
3224+ curl -L -o graalpy.tar.gz ${{ inputs.graalpy }}-linux-amd64.tar.gz
3225+ mkdir -p graalpy
3226+ tar -C $(pwd)/graalpy --strip-components=1 -xzf graalpy.tar.gz
3227+ graalpy/bin/graalpy -s -m ensurepip
3228+ graalpy/bin/graalpy -m pip install wheel
3229+ - name : Setup GraalPy
3230+ uses : actions/setup-python@main
3231+ if : inputs.graalpy == ''
3232+ with :
3233+ python-version : graalpy23.1
3234+ - name : Setup local GraalPy venv
3235+ if : inputs.graalpy == ''
3236+ run : python -m venv graalpy
3237+ - name : Download artifacts from opt_einsum
3238+ uses : actions/download-artifact@v3
3239+ with :
3240+ name : opt_einsum-linux-amd64
3241+ - name : Download artifacts from keras_preprocessing
3242+ uses : actions/download-artifact@v3
3243+ with :
3244+ name : keras_preprocessing-linux-amd64
3245+ - name : Build wheel
3246+ run : |-
3247+ export PIP_FIND_LINKS=$(pwd)
3248+ pip install pip numpy wheel packaging requests opt_einsum
3249+ pip install keras_preprocessing --no-deps
3250+ curl -L https://github.com/bazelbuild/bazel/releases/download/6.4.0/bazel-6.4.0-linux-x86_64 -o $(pwd)/graalpy/bin/bazel
3251+ chmod +x graalpy/bin/bazel
3252+ export PATH=$(pwd)/graalpy/bin/:$PATH
3253+ bazel --version
3254+ export PIP_FIND_LINKS=$(pwd)
3255+ export PATH=$(pwd)/graalpy/bin/:$PATH
3256+ graalpy/bin/graalpy -m pip wheel --find-links $(pwd) tensorflow
3257+ - name : Store wheels
3258+ uses : umutozd/upload-artifact@5c459179e7745e2c730c50b10a6459da0b6f25db
3259+ with :
3260+ name : tensorflow-linux-amd64
3261+ path : tensorflow*.whl
3262+ if-no-files-found : error
0 commit comments