Switched to static compilation in CI
parent
bdf0c2ee7c
commit
8ab3af1238
|
@ -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
|
||||||
|
|
|
@ -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 \
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue