chore: improve ci lint

min-heap
Jef Roosens 2023-01-22 13:02:11 +01:00
parent 0c673a2751
commit 16b78b8431
2 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,6 @@ pipeline:
pull: true pull: true
commands: commands:
- make lint - make lint
- make CFLAGS='-Werror' - make objs CFLAGS='-Werror -fsyntax-only'
when: when:
event: [push, pull_request] event: [push, pull_request]

View File

@ -33,6 +33,10 @@ all: vieter
# =====COMPILATION===== # =====COMPILATION=====
# Utility used by the CI to lint
.PHONY: objs
objs: $(OBJS)
.PHONY: vieter .PHONY: vieter
vieter: $(BUILD_DIR)/$(LIB_FILENAME) vieter: $(BUILD_DIR)/$(LIB_FILENAME)
$(BUILD_DIR)/$(LIB_FILENAME): $(OBJS) $(BUILD_DIR)/$(LIB_FILENAME): $(OBJS)