Skip to content

Commit b40f305

Browse files
.github/workflows/macos-builds.yml: adding separate build tests for x86 and arm64
1 parent 3c28398 commit b40f305

1 file changed

Lines changed: 29 additions & 9 deletions

File tree

.github/workflows/macos-builds.yml

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,46 @@
1-
name: DNMTools builds on macOS
1+
name: DNMTools build (macOS)
22

33
on:
44
workflow_dispatch:
5+
push:
6+
branches: [ "master" ]
7+
pull_request:
8+
branches: [ "master" ]
59

610
jobs:
7-
build:
8-
11+
build-on-x86:
912
runs-on: macos-13
10-
1113
steps:
12-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
- name: Update Homebrew
18+
run: brew update
19+
- name: Install autotools
20+
run: brew install automake
21+
- name: Install dependencies
22+
run: brew install htslib gsl
23+
- name: Generate configure script
24+
run: ./autogen.sh
25+
- name: configure with g++-14
26+
run: ./configure CXX="g++-14" CPPFLAGS="-I$(brew --prefix)/include" LDFLAGS="-L$(brew --prefix)/lib"
27+
- name: make
28+
run: make -j4
29+
build-on-arm64:
30+
runs-on: macos-15
31+
steps:
32+
- uses: actions/checkout@v4
1333
with:
1434
submodules: recursive
1535
- name: Update Homebrew
1636
run: brew update
1737
- name: Install autotools
18-
run: brew install autoconf automake libtool
38+
run: brew install automake
1939
- name: Install dependencies
2040
run: brew install htslib gsl
2141
- name: Generate configure script
2242
run: ./autogen.sh
23-
- name: configure with g++-12
24-
run: ./configure CXX="g++-12" CPPFLAGS="-I$(brew --prefix)/include" LDFLAGS="-L$(brew --prefix)/lib"
43+
- name: configure with g++-14
44+
run: ./configure CXX="g++-14" CPPFLAGS="-I$(brew --prefix)/include" LDFLAGS="-L$(brew --prefix)/lib"
2545
- name: make
26-
run: make
46+
run: make -j4

0 commit comments

Comments
 (0)