Compare commits

..

2 Commits

Author SHA1 Message Date
Jef Roosens ad8c37c9ea chore: added woodpecker config
ci/woodpecker/push/woodpecker Pipeline was successful Details
2023-01-18 17:04:45 +01:00
Jef Roosens e01b2451c6 chore: add some more config files 2023-01-18 16:58:33 +01:00
3 changed files with 39 additions and 0 deletions

2
.clangd 100644
View File

@ -0,0 +1,2 @@
CompileFlags:
Add: -ferror-limit=0

36
.woodpecker.yml 100644
View File

@ -0,0 +1,36 @@
variables:
&image 'git.rustybever.be/chewing_bever/c-devop:alpine3.17'
matrix:
PLATFORM:
- 'linux/amd64'
- 'linux/arm64'
branches:
exclude: [ main ]
platform: ${PLATFORM}
pipeline:
lint:
image: *image
pull: true
commands:
- make lint
when:
event: [push, pull_request]
build:
image: *image
commands:
- make
- make clean
- CFLAGS='-O3' make
when:
event: [push, pull_request]
test:
image: *image
commands:
- make test
when:
event: [push, pull_request]

View File

@ -61,6 +61,7 @@ $(BUILD_DIR)/$(TEST_DIR)/%.c.o: $(TEST_DIR)/%.c
mkdir -p $(dir $@) mkdir -p $(dir $@)
$(CC) $(CFLAGS) -I$(TEST_DIR) -c $< -o $@ $(CC) $(CFLAGS) -I$(TEST_DIR) -c $< -o $@
# =====MAINTENANCE===== # =====MAINTENANCE=====
.PHONY: lint .PHONY: lint
lint: lint: