Skip to content

Commit e86f959

Browse files
.github/workflows/ubuntu-builds.yml: separating gcc and clang builds into two jobs
1 parent db45bfe commit e86f959

1 file changed

Lines changed: 22 additions & 14 deletions

File tree

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
name: DNMTools builds on Ubuntu
1+
name: DNMTools build (Ubuntu)
22

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

610
jobs:
7-
build:
11+
build-with-gcc:
812
runs-on: ubuntu-latest
913
steps:
1014
- uses: actions/checkout@v4
@@ -14,21 +18,25 @@ jobs:
1418
run: sudo apt-get install -y libhts-dev libgsl-dev
1519
- name: Generate configure script
1620
run: ./autogen.sh
17-
- name: Configure for g++
21+
- name: Configure for GCC
1822
run: ./configure CXX="g++"
1923
- name: Build with g++
20-
run: make
24+
run: make -j4
2125
- name: Test the g++ build
22-
run: make check-TESTS
23-
- name: Cleanup after the g++ build
24-
run: make distclean
25-
- name: Install Clang/LLVM dependencies
26-
run: sudo apt-get install -y libomp-dev
27-
- name: Configure for clang++
26+
run: make -j4 check-TESTS
27+
build-with-clang:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
with:
32+
submodules: recursive
33+
- name: Install dependencies
34+
run: sudo apt-get install -y libhts-dev libgsl-dev
35+
- name: Generate configure script
36+
run: ./autogen.sh
37+
- name: Configure for Clang
2838
run: ./configure CXX="clang++"
2939
- name: Build with clang++
30-
run: make
40+
run: make -j4
3141
- name: Test the clang++ build
32-
run: make
33-
- name: Cleanup after the clang++ build
34-
run: make distclean
42+
run: make -j4 check-TESTS

0 commit comments

Comments
 (0)