Skip to content

Commit

Permalink
Added back env variable for static cfitsio to fix illegal instruction…
Browse files Browse the repository at this point in the history
…s in binary libraries
  • Loading branch information
gsleap committed Oct 5, 2023
1 parent 8b5e3d2 commit cc2bef0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
export RUSTFLAGS="-C target-cpu=${level}"

# Build python first
maturin build --release --features python,cfitsio-static --strip -i 3.7 3.8 3.9 3.10
MWALIB_LINK_STATIC_CFITSIO=1 maturin build --release --features python,cfitsio-static --strip -i 3.7 3.8 3.9 3.10

# Build C objects
cargo build --release --features cfitsio-static,examples
MWALIB_LINK_STATIC_CFITSIO=1 cargo build --release --features cfitsio-static,examples

# Create new release asset tarballs
mv target/wheels/*.whl target/release/libmwalib.{a,so} include/mwalib.h .
Expand All @@ -59,10 +59,10 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install automake

# Build python first
maturin build --release --features python,cfitsio-static --strip -i 3.7 3.8 3.9 3.10
MWALIB_LINK_STATIC_CFITSIO=1 maturin build --release --features python,cfitsio-static --strip -i 3.7 3.8 3.9 3.10

# Build C objects
cargo build --release --features cfitsio-static,examples
MWALIB_LINK_STATIC_CFITSIO=1 cargo build --release --features cfitsio-static,examples

# Create new release asset tarballs
mv target/wheels/*.whl target/release/libmwalib.{a,dylib} include/mwalib.h .
Expand Down

0 comments on commit cc2bef0

Please sign in to comment.