Skip to content

Commit 763d27e

Browse files
authored
Makefile fix for mac ARM architectures.
1 parent 5a326d5 commit 763d27e

6 files changed

Lines changed: 1175 additions & 994 deletions

File tree

.github/workflows/main.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
machine: [ubuntu-latest, macOS-13]
18+
machine: [ubuntu-latest, macOS-14]
1919
include:
20-
- {machine: ubuntu-latest, gmake_install_command: 'gmake --version', compiler: 12}
21-
- {machine: macOS-13, gmake_install_command: 'brew install make && gmake --version', compiler: 12}
20+
- {machine: ubuntu-latest, gmake_install_command: 'gmake --version', compiler: 13, platform: avx2}
21+
- {machine: macOS-14, gmake_install_command: 'brew install make && gmake --version', compiler: 13, platform: m1}
2222

2323
runs-on: ['${{ matrix.machine }}']
2424

@@ -29,18 +29,10 @@ jobs:
2929

3030
- name: install gmake
3131
run: ${{ matrix.gmake_install_command }}
32-
33-
- name: get tags
34-
run: |
35-
cd ./libs/igraph
36-
git fetch --prune --unshallow
37-
echo exit code $?
38-
git tag --list
39-
continue-on-error: true
40-
32+
4133
- name: make
4234
run: |
43-
gmake -j CXX=g++-${{matrix.compiler}} CC=gcc-${{matrix.compiler}} STATIC_LINK=true PLATFORM=avx2
35+
gmake -j CXX=g++-${{matrix.compiler}} CC=gcc-${{matrix.compiler}} STATIC_LINK=true PLATFORM=${{matrix.platform}}
4436
cp ./bin/famsa ./famsa
4537
- name: tar artifacts
4638
run: tar -cvf famsa.tar ./famsa ./test/adeno_fiber/* ./test/hemopexin/*
@@ -60,7 +52,7 @@ jobs:
6052
fail-fast: false
6153
matrix:
6254
tree: [sl, upgma]
63-
machine: [ubuntu-latest, macOS-13]
55+
machine: [ubuntu-latest, macOS-14]
6456

6557
runs-on: ['${{ matrix.machine }}']
6658

@@ -101,7 +93,7 @@ jobs:
10193
fail-fast: false
10294
matrix:
10395
tree: [sl, upgma, nj]
104-
machine: [ubuntu-latest, macOS-13]
96+
machine: [ubuntu-latest, macOS-14]
10597

10698
runs-on: ['${{ matrix.machine }}']
10799

@@ -146,7 +138,7 @@ jobs:
146138
strategy:
147139
fail-fast: false
148140
matrix:
149-
machine: [ubuntu-latest, macOS-13]
141+
machine: [ubuntu-latest, macOS-14]
150142

151143
runs-on: ['${{ matrix.machine }}']
152144

libs/prebuild.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cd ..
2828

2929
@echo "zlib-ng"
3030
cd zlib-ng
31-
cmake -B build-vs -S . -DZLIB_COMPAT=ON
31+
cmake -B build-vs -S .
3232
cmake --build build-vs --config Debug
3333
cmake --build build-vs --config Release
3434
cd ..

0 commit comments

Comments
 (0)