-
Notifications
You must be signed in to change notification settings - Fork 334
71 lines (61 loc) · 1.72 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: fastp ci
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
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
- 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
- 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