chore: updated CI config & PKGBUILDs to new module split
parent
44696fc11b
commit
43548569c3
|
@ -6,9 +6,21 @@ matrix:
|
||||||
platform: ${PLATFORM}
|
platform: ${PLATFORM}
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
debug:
|
install-modules:
|
||||||
image: 'chewingbever/vlang:latest'
|
image: 'chewingbever/vlang:latest'
|
||||||
pull: true
|
pull: true
|
||||||
|
environment:
|
||||||
|
- VMODULES=.vmodules
|
||||||
|
commands:
|
||||||
|
- mkdir -p .vmodules/cache
|
||||||
|
- 'cd src && v install'
|
||||||
|
when:
|
||||||
|
event: [pull_request]
|
||||||
|
|
||||||
|
debug:
|
||||||
|
image: 'chewingbever/vlang:latest'
|
||||||
|
environment:
|
||||||
|
- VMODULES=.vmodules
|
||||||
commands:
|
commands:
|
||||||
- make
|
- make
|
||||||
when:
|
when:
|
||||||
|
@ -18,9 +30,9 @@ pipeline:
|
||||||
|
|
||||||
prod:
|
prod:
|
||||||
image: 'chewingbever/vlang:latest'
|
image: 'chewingbever/vlang:latest'
|
||||||
pull: true
|
|
||||||
environment:
|
environment:
|
||||||
- LDFLAGS=-lz -lbz2 -llzma -lexpat -lzstd -llz4 -lsqlite3 -static
|
- LDFLAGS=-lz -lbz2 -llzma -lexpat -lzstd -llz4 -lsqlite3 -static
|
||||||
|
- VMODULES=.vmodules
|
||||||
commands:
|
commands:
|
||||||
# Apparently this -D is *very* important
|
# Apparently this -D is *very* important
|
||||||
- CFLAGS='-DGC_THREADS=1' make prod
|
- CFLAGS='-DGC_THREADS=1' make prod
|
||||||
|
|
8
PKGBUILD
8
PKGBUILD
|
@ -14,7 +14,15 @@ license=('AGPL3')
|
||||||
source=("$pkgname::git+https://git.rustybever.be/vieter/vieter#tag=${pkgver//_/-}")
|
source=("$pkgname::git+https://git.rustybever.be/vieter/vieter#tag=${pkgver//_/-}")
|
||||||
md5sums=('SKIP')
|
md5sums=('SKIP')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
export VMODULES=.vmodules
|
||||||
|
|
||||||
|
cd "$pkgname/src" && v install
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
export VMODULES=.vmodules
|
||||||
|
|
||||||
cd "$pkgname"
|
cd "$pkgname"
|
||||||
|
|
||||||
make prod
|
make prod
|
||||||
|
|
|
@ -22,7 +22,15 @@ pkgver() {
|
||||||
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
export VMODULES=.vmodules
|
||||||
|
|
||||||
|
cd "$pkgname/src" && v install
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
export VMODULES=.vmodules
|
||||||
|
|
||||||
cd "$pkgname"
|
cd "$pkgname"
|
||||||
|
|
||||||
make prod
|
make prod
|
||||||
|
|
Loading…
Reference in New Issue