|
1 | 1 | name: CMake |
2 | | - |
3 | 2 | on: [push] |
4 | | - |
5 | 3 | env: |
6 | 4 | # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) |
7 | 5 | BUILD_TYPE: Release |
8 | 6 |
|
9 | 7 | jobs: |
10 | 8 | build: |
11 | | - |
12 | 9 | name: ${{matrix.buildname}} |
13 | | - |
14 | | - runs-on: ${{matrix.os}} |
15 | | - |
16 | 10 | strategy: |
17 | 11 | fail-fast: false |
18 | 12 | 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}} |
37 | 15 | steps: |
38 | 16 | - name: Checkout |
39 | 17 | uses: actions/checkout@v2 |
40 | 18 | with: |
41 | 19 | 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 |
47 | 23 | - name: (Linux) Install dependencies |
48 | 24 | 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' |
59 | 33 | 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 |
66 | 36 | - name: Build |
67 | | - working-directory: ${{runner.workspace}}/build |
| 37 | + working-directory: ${{runner.workspace}}/sherpas |
68 | 38 | 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 |
74 | 42 | shell: bash |
75 | 43 | 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 |
0 commit comments