Skip to content

Commit

Permalink
Merge pull request #586 from chinwobble/fix-ci
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
sfchen authored Nov 28, 2024
2 parents 3570002 + 0ffa931 commit 59cc2f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: fastp ci
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- ubuntu-24.04
- macos-12
runs-on: ${{ matrix.os }}
steps:
- name: checkout scm
Expand All @@ -35,6 +33,7 @@ jobs:
with:
repository: ebiggers/libdeflate
path: src/libs/deflate
ref: v1.22

- name: build deflate
run: |
Expand All @@ -49,6 +48,7 @@ jobs:
with:
repository: intel/isa-l
path: src/libs/isa-l
ref: v2.31.0

- name: build isa-l
run: |
Expand Down
14 changes: 5 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ TARGET := fastp
BIN_TARGET := ${TARGET}

CXX ?= g++
CXXFLAGS := -std=c++11 -pthread -g -O3 -I${DIR_INC} $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir)) ${CXXFLAGS}
CXXFLAGS := -std=c++11 -pthread -g -O3 -MD -MP -I${DIR_INC} $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir)) ${CXXFLAGS}
LIBS := -lisal -ldeflate -lpthread
STATIC_FLAGS := -static -Wl,--no-as-needed -pthread
LD_FLAGS := $(foreach librarydir,$(LIBRARY_DIRS),-L$(librarydir)) $(LIBS) $(LD_FLAGS)
Expand All @@ -35,15 +35,11 @@ ${DIR_OBJ}/%.o:${DIR_SRC}/%.cpp
.PHONY:clean
.PHONY:static
clean:
@if test -d $(DIR_OBJ) ; \
then \
find $(DIR_OBJ) -name *.o -delete; \
fi
@if test -e $(TARGET) ; \
then \
rm $(TARGET) ; \
fi
@rm -rf $(DIR_OBJ)
@rm -f $(TARGET)

install:
install $(TARGET) $(BINDIR)/$(TARGET)
@echo "Installed."

-include $(OBJ:.o=.d)

0 comments on commit 59cc2f6

Please sign in to comment.