Skip to content

Commit 379f065

Browse files
Merge pull request #6 from phylo42/develop
Develop
2 parents d4da768 + c475aa5 commit 379f065

17 files changed

Lines changed: 3892 additions & 150 deletions

.github/workflows/build.yml

Lines changed: 23 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,47 @@
11
name: CMake
2-
32
on: [push]
4-
53
env:
64
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
75
BUILD_TYPE: Release
86

97
jobs:
108
build:
11-
129
name: ${{matrix.buildname}}
13-
14-
runs-on: ${{matrix.os}}
15-
1610
strategy:
1711
fail-fast: false
1812
matrix:
19-
os: [ ubuntu-20.04, ubuntu-18.04, macos-10.15, macos-11.0 ]
20-
include:
21-
- os: ubuntu-20.04
22-
buildname: 'ubuntu-20.04'
23-
triplet: x64-linux
24-
compiler: gcc_64
25-
- os: ubuntu-18.04
26-
buildname: 'ubuntu-18.04'
27-
triplet: x64-linux
28-
compiler: gcc_64
29-
- os: macos-10.15
30-
buildname: 'macos-10.15'
31-
triplet: x64-osx
32-
compiler: clang_64
33-
- os: macos-11.0
34-
buildname: 'macos-11.0'
35-
triplet: x64-osx
36-
compiler: clang_64
13+
os: [ ubuntu-latest ] #macos-14 ]
14+
runs-on: ${{matrix.os}}
3715
steps:
3816
- name: Checkout
3917
uses: actions/checkout@v2
4018
with:
4119
submodules: recursive
42-
43-
- name: (MacOS) Install dependencies
44-
if: runner.os == 'macOS'
45-
run: brew install boost
46-
20+
#- name: (MacOS) Install dependencies
21+
# if: runner.os == 'macOS'
22+
# run: brew install llvm@20 lld@20 libomp boost
4723
- name: (Linux) Install dependencies
4824
if: runner.os == 'Linux'
49-
run: sudo apt-get update && sudo apt-get install -yq libboost-dev libboost-serialization-dev libboost-filesystem-dev libboost-iostreams-dev
50-
51-
- name: Create Build Environment
52-
# Some projects don't allow in-source building, so create a separate build directory
53-
# We'll use this as our working directory for all subsequent commands
54-
run: cmake -E make_directory ${{runner.workspace}}/build
55-
56-
- name: Configure CMake
57-
# Use a bash shell so we can use the same syntax for environment variable
58-
# access regardless of the host operating system
25+
run: sudo apt-get update && sudo apt-get install -yq libomp-dev libboost-dev libboost-serialization-dev libboost-program-options-dev libboost-filesystem-dev libboost-iostreams-dev
26+
#- name: (MacOS) Configure CMake
27+
# if: runner.os == 'macOS'
28+
# shell: bash
29+
# working-directory: ${{runner.workspace}}/sherpas
30+
# run: cmake -DLDFLAGS="-L/opt/homebrew/opt/libomp/lib -L/opt/homebrew/opt/llvm/lib" -DCPPFLAGS="-I/opt/homebrew/opt/libomp/include -I/opt/homebrew/opt/llvm/include" -DCMAKE_POLICY_VERSION_MINIMUM=3.5
31+
- name: (Linux) Configure CMake
32+
if: runner.os == 'Linux'
5933
shell: bash
60-
working-directory: ${{runner.workspace}}/build
61-
# Note the current convention is to use the -S and -B options here to specify source
62-
# and build directories, but this is only available with CMake 3.13 and higher.
63-
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
64-
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
65-
34+
working-directory: ${{runner.workspace}}/sherpas
35+
run: cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5
6636
- name: Build
67-
working-directory: ${{runner.workspace}}/build
37+
working-directory: ${{runner.workspace}}/sherpas
6838
shell: bash
69-
# Execute the build. You can specify a specific target with "--target <NAME>"
70-
run: cmake --build . --config $BUILD_TYPE --target SHERPAS
71-
72-
- name: Test
73-
working-directory: ${{runner.workspace}}/build
39+
run: make
40+
- name: Test SHERPAS
41+
working-directory: ${{runner.workspace}}/sherpas
7442
shell: bash
7543
run: sherpas/SHERPAS -h
44+
#- name: Test XPAS-DNA (db build capacity)
45+
# working-directory: ${{runner.workspace}}/sherpas
46+
# shell: bash
47+
# run: lib/xpas/build/xpas-build-dna --help

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ recomb/src/mull-main.cpp
22
recomb/src/mull.cpp
33
release-build
44
core
5-
.DS_Store
5+
.DS_Store
6+
cmake-*
7+
.idea

0 commit comments

Comments
 (0)