Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
benney authored and benney committed Dec 24, 2024
1 parent 97cde03 commit c08bff9
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
matrix:
os:
- ubuntu-24.04
- macos-12
- macos-13
- macos-14
runs-on: ${{ matrix.os }}
steps:
- name: checkout scm
Expand All @@ -21,11 +22,11 @@ jobs:
id: cpu-cores

- name: install build dependencies (Ubuntu)
run: sudo apt update && sudo apt install -y build-essential nasm libgtest-dev libhwy-dev
run: sudo apt update && sudo apt install -y build-essential nasm libgtest-dev libhwy-dev libisal-dev
if: runner.os == 'Linux'

- name: install build dependencies (MacOS)
run: brew install automake autoconf coreutils nasm highway
run: brew install automake autoconf coreutils nasm highway googletest
if: runner.os == 'macOS'

- name: get deflate
Expand All @@ -43,33 +44,11 @@ jobs:
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)
- name: make fastplong
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: make test (Ubuntu)
run: bash -c 'make -j $(nproc) test-static'
if: runner.os == 'Linux'
- name: make test
run: bash -c 'make -j $(nproc) test'

- name: test
run: chmod a+x ./fastplong && ./fastplong --version
Expand Down

0 comments on commit c08bff9

Please sign in to comment.