Skip to content

Commit

Permalink
try fixing precompilation jobs on manylinux2014
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Nov 21, 2023
1 parent 74dfba1 commit ab27564
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/do-build-manylinux2014.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ OTP_VERSION=$2
ELIXIR_VERSION=$3
OPENSSL_VERSION=$4
ARCH=$5
HNSWLIB_CI_PRECOMPILE=$6

OTP_MAJOR_VERSION=$(cut -d "." -f 1 <<< "$OTP_VERSION")
OPENSSL_VERSION=${OPENSSL_VERSION:-3.1.1}
Expand Down Expand Up @@ -35,7 +36,7 @@ yum install -y openssl-devel ncurses-devel && \
cd /work
export MIX_ENV="${MIX_ENV}"
export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache
export BUILD_WITH_MANYLINUX="true"
export HNSWLIB_CI_PRECOMPILE="${HNSWLIB_CI_PRECOMPILE}"

mkdir -p "${ELIXIR_MAKE_CACHE_DIR}"
mix elixir_make.precompile
3 changes: 2 additions & 1 deletion .github/script-to-build-manylinux2014.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ OTP_VERSION=$2
ELIXIR_VERSION=$3
OPENSSL_VERSION=$4
ARCH=$5
HNSWLIB_CI_PRECOMPILE=$6

sudo docker run --privileged --network=host --rm -v `pwd`:/work "quay.io/pypa/manylinux2014_$ARCH:latest" \
sh -c "chmod a+x /work/do-build-manylinux2014.sh && /work/do-build-manylinux2014.sh ${MIX_ENV} ${OTP_VERSION} ${ELIXIR_VERSION} ${OPENSSL_VERSION} ${ARCH}"
sh -c "chmod a+x /work/do-build-manylinux2014.sh && /work/do-build-manylinux2014.sh ${MIX_ENV} ${OTP_VERSION} ${ELIXIR_VERSION} ${OPENSSL_VERSION} ${ARCH} ${HNSWLIB_CI_PRECOMPILE}"

if [ -d "`pwd`/cache" ]; then
sudo chmod -R a+wr `pwd`/cache ;
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/precompile-manylinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
cp .github/script-to-build-manylinux2014.sh ./
cp .github/do-build-manylinux2014.sh ./
bash ./script-to-build-manylinux2014.sh "${{ env.MIX_ENV }}" "${{ matrix.otp_version }}" "${{ env.ELIXIR_VERSION }}" "${{ env.OPENSSL_VERSION }}" "${{ matrix.arch }}"
bash ./script-to-build-manylinux2014.sh "${{ env.MIX_ENV }}" "${{ matrix.otp_version }}" "${{ env.ELIXIR_VERSION }}" "${{ env.OPENSSL_VERSION }}" "${{ matrix.arch }}" "${{ env.HNSWLIB_CI_PRECOMPILE }}"
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit ab27564

Please sign in to comment.