From 0dca7374dbf0804f168f8a774850e753e06a675a Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Thu, 21 Apr 2022 09:58:54 +0200 Subject: [PATCH] Fixed some errors in CI --- .woodpecker/.build.yml | 3 +-- .woodpecker/.build_experimental.yml | 11 +++++++++++ Makefile | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml index 66ae5a0..c612737 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -9,13 +9,12 @@ matrix: platform: ${PLATFORM} pipeline: - # The default build isn't needed, as alpine switches to gcc for the compiler anyways debug: image: 'chewingbever/vlang:latest' pull: true group: 'build' commands: - - make debug + - make when: event: push branch: diff --git a/.woodpecker/.build_experimental.yml b/.woodpecker/.build_experimental.yml index 2c0e20b..0129d2b 100644 --- a/.woodpecker/.build_experimental.yml +++ b/.woodpecker/.build_experimental.yml @@ -16,3 +16,14 @@ pipeline: - du -h afvieter when: event: push + + skip-unused: + image: 'chewingbever/vlang:latest' + pull: true + group: 'build' + commands: + - make skip-unused + - readelf -d suvieter + - du -h suvieter + when: + event: push diff --git a/Makefile b/Makefile index 8ddabbe..fb044fa 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ vieter: $(SOURCES) .PHONY: debug debug: dvieter dvieter: $(SOURCES) - $(V_PATH) -showcc -keepc -cg -skip-unused -o dvieter $(SRC_DIR) + $(V_PATH) -showcc -keepc -cg -o dvieter $(SRC_DIR) # Run the debug build inside gdb .PHONY: gdb @@ -83,3 +83,8 @@ clean: autofree: afvieter afvieter: $(SOURCES) $(V_PATH) -showcc -autofree -o afvieter $(SRC_DIR) + +.PHONY: skip-unused +skip-unused: suvieter +skip-unused: $(SOURCES) + $(V_PATH) -showcc -skip-unused -o afvieter $(SRC_DIR)