Switched to static compilation in CI
ci/woodpecker/push/builder unknown status Details
ci/woodpecker/push/publish unknown status Details
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/build Pipeline failed Details

pull/26/head
Jef Roosens 2022-01-14 18:32:00 +01:00
parent bdf0c2ee7c
commit 8ab3af1238
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
3 changed files with 8 additions and 1 deletions

View File

@ -6,17 +6,23 @@ pipeline:
vieter: vieter:
image: 'chewingbever/vlang:latest' image: 'chewingbever/vlang:latest'
group: 'build' group: 'build'
environment:
- LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static'
commands: commands:
- make vieter - make vieter
debug: debug:
image: 'chewingbever/vlang:latest' image: 'chewingbever/vlang:latest'
environment:
- LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static'
group: 'build' group: 'build'
commands: commands:
- make debug - make debug
prod: prod:
image: 'chewingbever/vlang:latest' image: 'chewingbever/vlang:latest'
environment:
- LDFLAGS='-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static'
group: 'build' group: 'build'
commands: commands:
- make prod - make prod

View File

@ -14,6 +14,7 @@ RUN apk --no-cache add \
git make upx gcc bash \ git make upx gcc bash \
musl-dev \ musl-dev \
openssl-libs-static openssl-dev \ openssl-libs-static openssl-dev \
zlib-static bzip2-static xz-dev expat-static zstd-static lz4-static \
sqlite-static sqlite-dev \ sqlite-static sqlite-dev \
libx11-dev glfw-dev freetype-dev \ libx11-dev glfw-dev freetype-dev \
libarchive-static libarchive-dev \ libarchive-static libarchive-dev \

View File

@ -42,7 +42,7 @@ run: vieter
.PHONY: run-prod .PHONY: run-prod
run-prod: prod run-prod: prod
API_KEY=test REPO_DIR=data LOG_LEVEL=DEBUG ./vieter-prod API_KEY=test REPO_DIR=data LOG_LEVEL=DEBUG ./pvieter
# Same as run, but restart when the source code changes # Same as run, but restart when the source code changes
.PHONY: watch .PHONY: watch