Update dependency installation for macOS and Linux #37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CMake | |
| on: [push] | |
| env: | |
| # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
| BUILD_TYPE: Release | |
| jobs: | |
| build: | |
| name: ${{matrix.buildname}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest, macos-latest ] | |
| runs-on: ${{matrix.os}} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| submodules: recursive | |
| - name: (MacOS) Install dependencies | |
| if: runner.os == 'macOS' | |
| run: brew install llvm libomp boost | |
| - name: (Linux) Install dependencies | |
| if: runner.os == 'Linux' | |
| 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 | |
| - name: Configure CMake | |
| # Use a bash shell so we can use the same syntax for environment variable | |
| # access regardless of the host operating system | |
| shell: bash | |
| working-directory: ${{runner.workspace}}/sherpas | |
| run: cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 | |
| - name: Build | |
| working-directory: ${{runner.workspace}}/sherpas | |
| shell: bash | |
| run: make | |
| - name: Test SHERPAS | |
| working-directory: ${{runner.workspace}}/sherpas | |
| shell: bash | |
| run: sherpas/SHERPAS -h | |
| - name: Test XPAS-DNA (db build capacity) | |
| working-directory: ${{runner.workspace}}/sherpas | |
| shell: bash | |
| run: lib/xpas/build/xpas-build-dna -h |