Added experimental builds to CI

main
Jef Roosens 2022-04-14 23:15:19 +02:00
parent c8fc683384
commit cd8fd78616
Signed by untrusted user: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 43 additions and 3 deletions

View File

@ -0,0 +1,25 @@
# These builds are not important for the project, but might be valuable for
# fixing bugs in the V compiler.
platform: linux/amd64
branches:
exclude: [master, dev]
pipeline:
autofree:
image: 'chewingbever/vlang:latest'
pull: true
group: 'build'
commands:
- make autofree
when:
event: push
skip-unused:
image: 'chewingbever/vlang:latest'
pull: true
group: 'build'
commands:
- make skip-unused
when:
event: push

View File

@ -7,6 +7,7 @@ V := $(V_PATH) -showcc -gc boehm
all: vieter all: vieter
# =====COMPILATION===== # =====COMPILATION=====
# Regular binary # Regular binary
vieter: $(SOURCES) vieter: $(SOURCES)
@ -33,9 +34,10 @@ pvieter: $(SOURCES)
# Only generate C code # Only generate C code
.PHONY: c .PHONY: c
c: c: $(SOURCES)
$(V) -o vieter.c $(SRC_DIR) $(V) -o vieter.c $(SRC_DIR)
# =====EXECUTION===== # =====EXECUTION=====
# Run the server in the default 'data' directory # Run the server in the default 'data' directory
.PHONY: run .PHONY: run
@ -46,6 +48,7 @@ run: vieter
run-prod: prod run-prod: prod
./pvieter -f vieter.toml server ./pvieter -f vieter.toml server
# =====OTHER===== # =====OTHER=====
.PHONY: lint .PHONY: lint
lint: lint:
@ -72,4 +75,16 @@ v/v:
make -C v make -C v
clean: clean:
rm -rf 'data' 'vieter' 'dvieter' 'pvieter' 'vieter.c' 'dvieterctl' 'vieterctl' 'pkg' 'src/vieter' rm -rf 'data' 'vieter' 'dvieter' 'pvieter' 'vieter.c' 'pkg' 'src/vieter' 'afvieter' 'suvieter'
# =====EXPERIMENTAL=====
.PHONY: autofree
autofree: afvieter
afvieter: $(SOURCES)
$(V_PATH) -showcc -autofree -o afvieter $(SRC_DIR)
.PHONY: skip-unused
skip-unused: suvieter
suvieter: $(SOURCES)
$(V_PATH) -showcc -skip-unused -o suvieter $(SRC_DIR)