Skip to content

Commit a47e572

Browse files
committed
Updating build binary scripts
1 parent ec3e2d1 commit a47e572

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/binaries.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
if: runner.os == 'macOS'
2525
run: |
2626
# fftw3
27-
brew install fftw ninja meson
27+
brew install fftw ninja meson gcc
2828
fftw-wisdom -V
2929
echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV
3030
@@ -58,7 +58,16 @@ jobs:
5858
with:
5959
python-version: '3.11'
6060

61-
- name: Build binaries ${{ matrix.icon}}
61+
- name: Build binaries ${{ matrix.icon}} on macOS
62+
if: runner.os == 'macOS'
63+
run: |
64+
FC=gfortran cmake -S . -G Ninja -B build -DCMAKE_BUILD_TYPE=Release
65+
cmake --build build --parallel
66+
mkdir ./dist
67+
ls -l ./bin
68+
cp ./bin/uppasd* ./dist/uppasd.${{runner.os}}.${{matrix.arch}}.exe
69+
70+
- name: Build binaries ${{ matrix.icon}}
6271
run: |
6372
cmake -S . -G Ninja -B build -DCMAKE_BUILD_TYPE=Release
6473
cmake --build build --parallel
@@ -67,6 +76,7 @@ jobs:
6776
cp ./bin/uppasd* ./dist/uppasd.${{runner.os}}.${{matrix.arch}}.exe
6877
6978
- name: Install python packages for testing
79+
if: runner.os != 'Windows'
7080
run: |
7181
python -m ensurepip
7282
python -m pip install pyyaml

0 commit comments

Comments
 (0)