Code handover #2
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: Validate | |
| on: | |
| push: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| validate: | |
| name: Validate | |
| strategy: | |
| matrix: | |
| include: | |
| - os: macos-latest | |
| command: ".github/workflows/val.sh" | |
| - os: ubuntu-latest | |
| command: ".github/workflows/val.sh" | |
| chmod: true | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - if: matrix.os == 'macos-latest' | |
| name: Build (macOS) | |
| run: | | |
| brew install openssl@3 htslib | |
| OPENSSL_PREFIX=$(brew --prefix openssl@3) | |
| HTSLIB_PREFIX=$(brew --prefix htslib) | |
| INCLUDE_DIR="-I$OPENSSL_PREFIX/include -I$HTSLIB_PREFIX/include" | |
| LDFLAGS="-L$OPENSSL_PREFIX/lib -L$HTSLIB_PREFIX/lib" | |
| make CFLAGS="$INCLUDE_DIR" LDFLAGS="$LDFLAGS" all -j | |
| - if: matrix.os == 'ubuntu-latest' | |
| name: Build | |
| run: | | |
| sudo apt-get install libhts-dev | |
| make all -j | |
| - name: Validate | |
| run: | | |
| chmod +x .github/workflows/val.sh | |
| ${{ matrix.command }} |