Skip to content

Commit

Permalink
try non bundled
Browse files Browse the repository at this point in the history
  • Loading branch information
esheldon committed Jun 19, 2024
1 parent 17222f9 commit 41f5c77
Showing 1 changed file with 34 additions and 6 deletions.
40 changes: 34 additions & 6 deletions .github/workflows/test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,41 @@ jobs:
with:
python-version: ${{ matrix.pyver }}

- name: Install code
run: pip install -e .

- name: lint
- name: install cfitsio
run: |
pip install flake8
flake8 fitsio
curl.exe --output cfitsio.zip --url https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfit-4.4.1.zip
unzip cfitsio.zip
cd cfit-4.4.1
mkdir build
cd build
cmake -G "NMake Makefiles" ^
-D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-D CMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
-D CMAKE_BUILD_TYPE=Release ^
-D TESTS=On ^
-D UTILS=On ^
..
if errorlevel 1 exit 1
nmake
if errorlevel 1 exit 1
nmake install
if errorlevel 1 exit 1
:: delete in case this breaks other things - only needed for compilation anyway
del %LIBRARY_INC%\unistd.h
if errorlevel 1 exit 1
cd ..
cd ..
- name: Install code
run: pip install -e . \
--global-option="build_ext" \
--global-option="--use-system-fitsio"

- name: test
run: |
Expand Down

0 comments on commit 41f5c77

Please sign in to comment.