name: fastp ci on: pull_request: branches: - master jobs: build: strategy: fail-fast: false matrix: os: - ubuntu-24.04 - macos-12 runs-on: ${{ matrix.os }} steps: - name: checkout scm uses: actions/checkout@v3 - name: Get number of CPU cores uses: SimenB/github-actions-cpu-cores@v1 id: cpu-cores - name: install build dependencies (Ubuntu) run: sudo apt update && sudo apt install -y build-essential nasm if: runner.os == 'Linux' - name: install build dependencies (MacOS) run: brew install automake autoconf coreutils nasm if: runner.os == 'macOS' - name: get deflate uses: actions/checkout@v3 with: repository: ebiggers/libdeflate path: src/libs/deflate ref: v1.22 - name: build deflate run: | cd src/libs/deflate cmake -B build cmake --build build -j ${{ steps.cpu-cores.outputs.count }} sudo cmake --install build cd - - name: get isa-l uses: actions/checkout@v3 with: repository: intel/isa-l path: src/libs/isa-l ref: v2.31.0 - name: build isa-l run: | cd src/libs/isa-l ./autogen.sh ./configure --prefix=/usr/local make -j ${{ steps.cpu-cores.outputs.count }} sudo make install cd - - name: make fatsp (MacOS) run: bash -c 'make -j $(nproc)' if: runner.os == 'macOS' - name: make fastp static (Ubuntu) run: bash -c 'make -j $(nproc) static' if: runner.os == 'Linux' - name: test run: chmod a+x ./fastp && ./fastp --version