Skip to content

Commit

Permalink
Use Ninja on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-hld committed Jan 30, 2024
1 parent 9a4c3bf commit 9d94942
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-safpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install openblas
elif [ "$RUNNER_OS" == "Windows" ]; then
choco install ninja
curl https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.26/OpenBLAS-0.3.26-x64.zip -L -o tmp.zip
7z x ./tmp.zip -oOpenBLAS
ls
Expand All @@ -66,7 +67,7 @@ jobs:
elif [ "$RUNNER_OS" == "macOS" ]; then
cmake -S ./Spatial_Audio_Framework/ -B ./Spatial_Audio_Framework/build -DSAF_PERFORMANCE_LIB=SAF_USE_APPLE_ACCELERATE -DSAF_BUILD_EXAMPLES=0
elif [ "$RUNNER_OS" == "Windows" ]; then
cmake -S ./Spatial_Audio_Framework/ -B ./Spatial_Audio_Framework/build -DSAF_PERFORMANCE_LIB=SAF_USE_OPEN_BLAS_AND_LAPACKE -DOPENBLAS_LIBRARY=$GITHUB_WORKSPACE/OpenBLAS/lib/libopenblas.lib -DLAPACKE_LIBRARY=$GITHUB_WORKSPACE/OpenBLAS/lib/libopenblas.lib -DOPENBLAS_HEADER_PATH=$GITHUB_WORKSPACE/OpenBLAS/include/ -DSAF_BUILD_EXAMPLES=0
cmake -S ./Spatial_Audio_Framework/ -B ./Spatial_Audio_Framework/build -DSAF_PERFORMANCE_LIB=SAF_USE_OPEN_BLAS_AND_LAPACKE -DOPENBLAS_LIBRARY=$GITHUB_WORKSPACE/OpenBLAS/lib/libopenblas.lib -DLAPACKE_LIBRARY=$GITHUB_WORKSPACE/OpenBLAS/lib/libopenblas.lib -DOPENBLAS_HEADER_PATH=$GITHUB_WORKSPACE/OpenBLAS/include/ -GNinja -DSAF_BUILD_EXAMPLES=0
fi
shell: bash

Expand All @@ -92,7 +93,7 @@ jobs:
cp ./Spatial_Audio_Framework/build/test/Debug/saf_test.exe ./Spatial_Audio_Framework/build/test/
cd ./Spatial_Audio_Framework/build/test/
ls -lh
# ./saf_test.exe # Not working
./saf_test.exe
cd $GITHUB_WORKSPACE
shell: bash

Expand Down

0 comments on commit 9d94942

Please sign in to comment.