Skip to content

Commit

Permalink
v0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Feb 29, 2024
1 parent 5544652 commit 4678c5e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
19 changes: 11 additions & 8 deletions .github/do-build-manylinux2014.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@ ARCH=$5
HNSWLIB_CI_PRECOMPILE=$6

OTP_MAJOR_VERSION=$(cut -d "." -f 1 <<< "$OTP_VERSION")
OPENSSL_VERSION=${OPENSSL_VERSION:-3.1.1}
OPENSSL_VERSION=${OPENSSL_VERSION:-3.2.1}
PERFIX_DIR="/openssl-${ARCH}"
OPENSSL_ARCHIVE="openssl-${ARCH}.tar.gz"
OTP_ARCHIVE="otp-${ARCH}.tar.gz"
OPENSSL_ARCHIVE="openssl-${ARCH}-linux-gnu.tar.gz"
OTP_ARCHIVE="otp-${ARCH}-linux-gnu.tar.gz"

yum install -y openssl-devel ncurses-devel && \
cd / && \
curl -fSL "https://github.com/cocoa-xu/elixir_make-manylinux-openssl-precompiled/releases/download/v${OPENSSL_VERSION}/${OPENSSL_ARCHIVE}" -o "${OPENSSL_ARCHIVE}" && \
tar -xf "${OPENSSL_ARCHIVE}" && \
curl -fSL "https://github.com/cocoa-xu/elixir_make-manylinux-otp-precompiled/releases/download/v${OTP_VERSION}/${OTP_ARCHIVE}" -o "${OTP_ARCHIVE}" && \
tar -xf "${OTP_ARCHIVE}" && \
export PATH="/${OTP_VERSION}/bin:${PATH}" && \
curl -fSL "https://github.com/cocoa-xu/openssl-build/releases/download/v${OPENSSL_VERSION}/${OPENSSL_ARCHIVE}" -o "${OPENSSL_ARCHIVE}" && \
mkdir -p "${PERFIX_DIR}" && \
tar -xf "${OPENSSL_ARCHIVE}" -C "${PERFIX_DIR}" && \
curl -fSL "https://github.com/cocoa-xu/otp-build/releases/download/v${OTP_VERSION}/${OTP_ARCHIVE}" -o "${OTP_ARCHIVE}" && \
mkdir -p "otp" && \
tar -xf "${OTP_ARCHIVE}" -C "otp" && \
export PATH="/otp/usr/local/bin:${PATH}" && \
export ERL_ROOTDIR="/otp/usr/local/lib/erlang" && \
mkdir -p "elixir-${ELIXIR_VERSION}" && \
cd "elixir-${ELIXIR_VERSION}" && \
curl -fSL "https://github.com/elixir-lang/elixir/releases/download/${ELIXIR_VERSION}/elixir-otp-${OTP_MAJOR_VERSION}.zip" -o "elixir-otp-${OTP_MAJOR_VERSION}.zip" && \
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/precompile-manylinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
runs-on: ubuntu-latest
env:
MIX_ENV: prod
OPENSSL_VERSION: "3.1.1"
OPENSSL_VERSION: "3.2.1"
ELIXIR_VERSION: "v1.15.4"
HNSWLIB_CI_PRECOMPILE: "manylinux2014"
strategy:
matrix:
otp_version: ["25.3.2.6", "26.0.2"]
otp_version: ["25.3.2.9", "26.2.2"]
arch: [x86_64, i686, s390x]

name: ${{ matrix.arch }}-linux-gnu - OTP ${{ matrix.otp_version }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Pull docker image
run: |
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule HNSWLib.MixProject do
use Mix.Project

@version "0.1.4"
@version "0.1.5"
@github_url "https://github.com/elixir-nx/hnswlib"

def project do
Expand Down

0 comments on commit 4678c5e

Please sign in to comment.