Skip to content

Commit 59cc2f6

Browse files
authored
Merge pull request #586 from chinwobble/fix-ci
Fix CI
2 parents 3570002 + 0ffa931 commit 59cc2f6

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

Diff for: .github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
name: fastp ci
22
on:
3-
push:
4-
branches:
5-
- master
63
pull_request:
74
branches:
85
- master
96
jobs:
107
build:
118
strategy:
9+
fail-fast: false
1210
matrix:
1311
os:
14-
- ubuntu-latest
15-
- macos-latest
12+
- ubuntu-24.04
13+
- macos-12
1614
runs-on: ${{ matrix.os }}
1715
steps:
1816
- name: checkout scm
@@ -35,6 +33,7 @@ jobs:
3533
with:
3634
repository: ebiggers/libdeflate
3735
path: src/libs/deflate
36+
ref: v1.22
3837

3938
- name: build deflate
4039
run: |
@@ -49,6 +48,7 @@ jobs:
4948
with:
5049
repository: intel/isa-l
5150
path: src/libs/isa-l
51+
ref: v2.31.0
5252

5353
- name: build isa-l
5454
run: |

Diff for: Makefile

+5-9
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ TARGET := fastp
1515
BIN_TARGET := ${TARGET}
1616

1717
CXX ?= g++
18-
CXXFLAGS := -std=c++11 -pthread -g -O3 -I${DIR_INC} $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir)) ${CXXFLAGS}
18+
CXXFLAGS := -std=c++11 -pthread -g -O3 -MD -MP -I${DIR_INC} $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir)) ${CXXFLAGS}
1919
LIBS := -lisal -ldeflate -lpthread
2020
STATIC_FLAGS := -static -Wl,--no-as-needed -pthread
2121
LD_FLAGS := $(foreach librarydir,$(LIBRARY_DIRS),-L$(librarydir)) $(LIBS) $(LD_FLAGS)
@@ -35,15 +35,11 @@ ${DIR_OBJ}/%.o:${DIR_SRC}/%.cpp
3535
.PHONY:clean
3636
.PHONY:static
3737
clean:
38-
@if test -d $(DIR_OBJ) ; \
39-
then \
40-
find $(DIR_OBJ) -name *.o -delete; \
41-
fi
42-
@if test -e $(TARGET) ; \
43-
then \
44-
rm $(TARGET) ; \
45-
fi
38+
@rm -rf $(DIR_OBJ)
39+
@rm -f $(TARGET)
4640

4741
install:
4842
install $(TARGET) $(BINDIR)/$(TARGET)
4943
@echo "Installed."
44+
45+
-include $(OBJ:.o=.d)

0 commit comments

Comments
 (0)