Added way to specify V path in CI
parent
78e343fae2
commit
4084e3c857
|
@ -7,6 +7,7 @@ WORKDIR /opt/vlang
|
|||
ENV VVV /opt/vlang
|
||||
ENV PATH /opt/vlang:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
ENV VFLAGS -cc gcc
|
||||
ENV V_PATH /opt/vlang/v
|
||||
|
||||
RUN ln -s /opt/vlang/v /usr/bin/v && \
|
||||
apk --no-cache add \
|
||||
|
|
3
Makefile
3
Makefile
|
@ -7,10 +7,11 @@ LARCHIVE_DIR := libarchive-$(LARCHIVE_VER)
|
|||
LARCHIVE_LIB := $(LARCHIVE_DIR)/libarchive/libarchive.so
|
||||
|
||||
V_RELEASE := weekly.2022.04
|
||||
V_PATH ?= v-$(V_RELEASE)/v
|
||||
|
||||
# Custom V command for linking libarchive
|
||||
# V := LDFLAGS=$(PWD)/$(LARCHIVE_LIB) v -cflags '-I$(PWD)/$(LARCHIVE_DIR) -I $(PWD)/$(LARCHIVE_DIR)'
|
||||
V := v-$(V_RELEASE)/v -showcc
|
||||
V := $(V_PATH) -showcc
|
||||
|
||||
all: vieter
|
||||
|
||||
|
|
Loading…
Reference in New Issue