2021-08-15 08:18:59 +03:00
|
|
|
freebsd_instance:
|
|
|
|
image_family: freebsd-13-0
|
|
|
|
|
2021-12-16 18:44:21 +03:00
|
|
|
freebsd_task:
|
|
|
|
name: Code CI / freebsd
|
2021-08-15 12:22:36 +03:00
|
|
|
install_script: pkg install -y git
|
2021-08-15 09:27:17 +03:00
|
|
|
script: |
|
|
|
|
echo 'Building V'
|
|
|
|
git clone https://github.com/vlang/v
|
|
|
|
cd v
|
|
|
|
make
|
2021-08-15 12:03:09 +03:00
|
|
|
##.github/workflows/freebsd_build_tcc.sh
|
2021-08-15 09:59:19 +03:00
|
|
|
##tcc -v -v
|
2021-08-15 09:27:17 +03:00
|
|
|
echo 'Build cmd/tools/fast'
|
2021-08-18 13:10:12 +03:00
|
|
|
cd cmd/tools/fast && ../../../v fast.v && ./fast -clang
|
2021-12-16 18:44:21 +03:00
|
|
|
|
|
|
|
|
|
|
|
arm64_task:
|
|
|
|
name: Code CI / arm64-ubuntu-tcc
|
|
|
|
arm_container:
|
|
|
|
image: ubuntu:latest
|
|
|
|
install_script: apt-get update -y && apt-get install --quiet -y build-essential pkg-config wget git valgrind libsqlite3-dev libssl-dev libxi-dev libxcursor-dev libfreetype6-dev libxi-dev libxcursor-dev libgl-dev xfonts-75dpi xfonts-base libmysqlclient-dev libpq-dev
|
|
|
|
env:
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
VFLAGS: -cc tcc -no-retry-compilation
|
|
|
|
VJOBS: 2
|
|
|
|
script: |
|
|
|
|
set -e
|
|
|
|
|
|
|
|
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_arm64.deb
|
|
|
|
apt install --fix-missing -y ./wkhtmltox_0.12.6-1.focal_arm64.deb
|
|
|
|
|
|
|
|
# ensure that a V binary can be built, even if tcc has broken for some reason
|
|
|
|
VFLAGS='-cc gcc' make
|
|
|
|
|
|
|
|
./v -g self
|
|
|
|
./v -g self
|
|
|
|
|
|
|
|
./v -d debug_malloc -d debug_realloc -o v cmd/v
|
|
|
|
./v -cg -cstrict -o v cmd/v
|
|
|
|
#Test v->c
|
|
|
|
thirdparty/tcc/tcc.exe -version
|
|
|
|
./v -cg -o v cmd/v # Make sure vtcc can build itself twice
|
|
|
|
|
|
|
|
# - name: v self compilation
|
|
|
|
./v -o v2 cmd/v && ./v2 -o v3 cmd/v && ./v3 -o v4 cmd/v
|
|
|
|
|
|
|
|
# - name: v self compilation with -skip-unused
|
|
|
|
./v -skip-unused -o v2 cmd/v && ./v2 -skip-unused -o v3 cmd/v && ./v3 -skip-unused -o v4 cmd/v
|
|
|
|
|
|
|
|
# - name: v doctor
|
|
|
|
./v doctor
|
|
|
|
|
|
|
|
# - name: Verify `v test` works
|
|
|
|
./v cmd/tools/test_if_v_test_system_works.v
|
|
|
|
./cmd/tools/test_if_v_test_system_works
|
|
|
|
|
|
|
|
# - name: Self tests
|
|
|
|
./v -silent test-self
|
|
|
|
|
|
|
|
## - name: Self tests (-cstrict)
|
|
|
|
## ./v -cstrict test-self
|
|
|
|
|
|
|
|
# - name: Test time functions in a timezone UTC-12
|
|
|
|
TZ=Etc/GMT+12 ./v test vlib/time/
|
|
|
|
# - name: Test time functions in a timezone UTC-3
|
|
|
|
TZ=Etc/GMT+3 ./v test vlib/time/
|
|
|
|
# - name: Test time functions in a timezone UTC+3
|
|
|
|
TZ=Etc/GMT-3 ./v test vlib/time/
|
|
|
|
# - name: Test time functions in a timezone UTC+12
|
|
|
|
TZ=Etc/GMT-12 ./v test vlib/time/
|
|
|
|
# - name: Test time functions in a timezone using daylight saving (Europe/Paris)
|
|
|
|
TZ=Europe/Paris ./v test vlib/time/
|
|
|
|
# - name: Build examples
|
|
|
|
./v -W build-examples
|
|
|
|
# - name: Test building v tools
|
|
|
|
./v -W build-tools
|
|
|
|
# - name: Test v binaries
|
|
|
|
./v build-vbinaries
|
|
|
|
# - name: Run a VSH script
|
|
|
|
./v run examples/v_script.vsh
|
|
|
|
# - name: Test v tutorials
|
|
|
|
./v tutorials/building_a_simple_web_blog_with_vweb/code/blog
|