Skip to content

Commit

Permalink
build separately
Browse files Browse the repository at this point in the history
  • Loading branch information
jalbrekt85 committed Jan 3, 2024
1 parent 0b7450f commit 21c014c
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,20 @@ jobs:
- name: Install maturin
run: pip install maturin

- name: Build and Prepare Wheels
- name: Set OpenSSL Environment Variables
run: |
export OPENSSL_DIR=$OPENSSL_DIR
export OPENSSL_LIB_DIR=$OPENSSL_LIB_DIR
export OPENSSL_INCLUDE_DIR=$OPENSSL_INCLUDE_DIR
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH
maturin build --release --out dist --target aarch64-unknown-linux-gnu --target x86_64-unknown-linux-gnu
echo "OPENSSL_DIR=/usr" >> $GITHUB_ENV
echo "OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu" >> $GITHUB_ENV
echo "OPENSSL_INCLUDE_DIR=/usr/include" >> $GITHUB_ENV
echo "PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig" >> $GITHUB_ENV
- name: Build amd64 Wheels
run: maturin build --release --out dist/amd64 --target x86_64-unknown-linux-gnu
env:
CARGO_TERM_COLOR: always

- name: Build arm64 Wheels
run: maturin build --release --out dist/arm64 --target aarch64-unknown-linux-gnu
env:
CARGO_TERM_COLOR: always

Expand Down

0 comments on commit 21c014c

Please sign in to comment.