| ... | ... | @@ -0,0 +1,21 @@ |
| 1 | arch: x86_64 |
| 2 | image: freebsd |
| 3 | packages: |
| 4 | - cmake |
| 5 | - llvm70 |
| 6 | sources: |
| 7 | - https://github.com/ziglang/zig.git |
| 8 | tasks: |
| 9 | - build: | |
| 10 | cd zig && mkdir build && cd build |
| 11 | cmake .. -DCMAKE_BUILD_TYPE=Release |
| 12 | make -j$(sysctl -n hw.ncpu) install |
| 13 | - test: | |
| 14 | cd zig/build |
| 15 | bin/zig test ../test/behavior.zig |
| 16 | # TODO enable all tests |
| 17 | #bin/zig build --build-file ../build.zig test |
| 18 | # TODO integrate with the download page updater and make a |
| 19 | # static build available to download for FreeBSD. |
| 20 | # This will require setting up a cache of LLVM/Clang built |
| 21 | # statically. |