zig/.builds/freebsd.yml

53 lines
2.0 KiB
YAML
Raw Normal View History

arch: x86_64
image: freebsd
packages:
- cmake
- ninja
- llvm70
sources:
- https://github.com/ziglang/zig.git
tasks:
- build: |
cd zig && mkdir build && cd build
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release
ninja install
- test: |
cd zig/build
bin/zig test ../test/behavior.zig
bin/zig test ../std/special/compiler_rt/index.zig
bin/zig test ../std/index.zig
bin/zig test ../test/behavior.zig --library c
bin/zig test ../std/special/compiler_rt/index.zig --library c
bin/zig test ../std/index.zig --library c
bin/zig test ../test/behavior.zig --release-fast
bin/zig test ../std/special/compiler_rt/index.zig --release-fast
bin/zig test ../std/index.zig --release-fast
bin/zig test ../test/behavior.zig --release-fast --library c
bin/zig test ../std/special/compiler_rt/index.zig --release-fast --library c
bin/zig test ../std/index.zig --release-fast --library c
bin/zig test ../test/behavior.zig --release-small --library c
bin/zig test ../std/special/compiler_rt/index.zig --release-small --library c
bin/zig test ../std/index.zig --release-small --library c
bin/zig test ../test/behavior.zig --release-small
bin/zig test ../std/special/compiler_rt/index.zig --release-small
bin/zig test ../std/index.zig --release-small
bin/zig test ../test/behavior.zig --release-safe
bin/zig test ../std/special/compiler_rt/index.zig --release-safe
bin/zig test ../std/index.zig --release-safe
bin/zig test ../test/behavior.zig --release-safe --library c
bin/zig test ../std/special/compiler_rt/index.zig --release-safe --library c
bin/zig test ../std/index.zig --release-safe --library c
# TODO enable all tests
#bin/zig build --build-file ../build.zig test
# TODO integrate with the download page updater and make a
# static build available to download for FreeBSD.
# This will require setting up a cache of LLVM/Clang built
# statically.