Skip to content

Commit

Permalink
Another attempt with cfitsio and macosx....
Browse files Browse the repository at this point in the history
  • Loading branch information
gsleap committed Mar 28, 2021
1 parent c61e0ae commit e512731
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/test_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: MacOS Tests
on: [push, pull_request]

env:
RUST_BACKTRACE: 1
RUST_BACKTRACE: 1
PKG_CONFIG_PATH: "/Users/runner/work/mwalib/mwalib/cfitsio-3.49/lib/pkgconfig"

jobs:
test_macos:
Expand All @@ -22,10 +23,21 @@ jobs:
toolchain: stable
override: true

- name: Uninstall curl and install cfitsio
- name: Build cfitsio
run: |
brew uninstall --ignore-dependencies curl
brew install cfitsio
# Install dependencies
curl "https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-3.49.tar.gz" -o cfitsio.tar.gz
tar -xf cfitsio.tar.gz
rm cfitsio.tar.gz
cd cfitsio-3.49
# Enabling SSE2/SSSE3 could cause portability problems, but it's unlikely that anyone
# is using such a CPU...
# https://stackoverflow.com/questions/52858556/most-recent-processor-without-support-of-ssse3-instructions
# Disabling curl just means you cannot fits_open() using a URL.
CFLAGS="-O3" ./configure --enable-reentrant --enable-sse2 --enable-ssse3 --disable-curl
make shared
sudo make install
cd ..
- name: Run tests
run: MWALIB_LINK_STATIC_CFITSIO=1 cargo test --release --verbose

0 comments on commit e512731

Please sign in to comment.