diff --git a/.clangd b/.clangd new file mode 100644 index 0000000..ef516ad --- /dev/null +++ b/.clangd @@ -0,0 +1,2 @@ +CompileFlags: + Add: -ferror-limit=0 diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..a7e8fe3 --- /dev/null +++ b/.woodpecker.yml @@ -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] diff --git a/Makefile b/Makefile index 238d4d3..4907163 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,7 @@ $(BUILD_DIR)/$(TEST_DIR)/%.c.o: $(TEST_DIR)/%.c mkdir -p $(dir $@) $(CC) $(CFLAGS) -I$(TEST_DIR) -c $< -o $@ + # =====MAINTENANCE===== .PHONY: lint lint: