Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: fastp ci
2 on:
3 pull_request:
4 branches:
5 - master
6 jobs:
7 build:
8 strategy:
9 fail-fast: false
10 matrix:
11 os:
12 - ubuntu-24.04
13 - macos-12
14 runs-on: ${{ matrix.os }}
15 steps:
16 - name: checkout scm
17 uses: actions/checkout@v3
18
19 - name: Get number of CPU cores
20 uses: SimenB/github-actions-cpu-cores@v1
21 id: cpu-cores
22
23 - name: install build dependencies (Ubuntu)
24 run: sudo apt update && sudo apt install -y build-essential nasm
25 if: runner.os == 'Linux'
26
27 - name: install build dependencies (MacOS)
28 run: brew install automake autoconf coreutils nasm
29 if: runner.os == 'macOS'
30
31 - name: get deflate
32 uses: actions/checkout@v3
33 with:
34 repository: ebiggers/libdeflate
35 path: src/libs/deflate
36 ref: v1.22
37
38 - name: build deflate
39 run: |
40 cd src/libs/deflate
41 cmake -B build
42 cmake --build build -j ${{ steps.cpu-cores.outputs.count }}
43 sudo cmake --install build
44 cd -
45
46 - name: get isa-l
47 uses: actions/checkout@v3
48 with:
49 repository: intel/isa-l
50 path: src/libs/isa-l
51 ref: v2.31.0
52
53 - name: build isa-l
54 run: |
55 cd src/libs/isa-l
56 ./autogen.sh
57 ./configure --prefix=/usr/local
58 make -j ${{ steps.cpu-cores.outputs.count }}
59 sudo make install
60 cd -
61
62 - name: make fatsp (MacOS)
63 run: bash -c 'make -j $(nproc)'
64 if: runner.os == 'macOS'
65
66 - name: make fastp static (Ubuntu)
67 run: bash -c 'make -j $(nproc) static'
68 if: runner.os == 'Linux'
69
70 - name: test
71 run: chmod a+x ./fastp && ./fastp --version