freebsd.yml 991 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # see https://man.sr.ht/builds.sr.ht/compatibility.md#freebsd
  2. image: freebsd/latest
  3. # packages:
  4. # - databases/sqlite3
  5. # - devel/boehm-gc-threaded
  6. # - devel/pcre
  7. # - devel/sdl20
  8. # - devel/sfml
  9. # - www/node
  10. # - devel/gmake
  11. # - devel/git
  12. sources:
  13. - https://github.com/nim-lang/Nim
  14. environment:
  15. CC: /usr/bin/clang
  16. tasks:
  17. - setup: |
  18. # workaround https://github.com/timotheecour/Nim/issues/76
  19. sudo pkg update -q -f
  20. sudo pkg install -y -q databases/sqlite3 devel/boehm-gc-threaded devel/pcre \
  21. devel/sdl20 devel/sfml www/node devel/gmake devel/git
  22. cd Nim
  23. git clone --depth 1 -q https://github.com/nim-lang/csources.git
  24. gmake -C csources -j $(sysctl -n hw.ncpu)
  25. bin/nim c --skipUserCfg --skipParentCfg koch
  26. echo 'export PATH=$HOME/Nim/bin:$PATH' >> $HOME/.buildenv
  27. - test: |
  28. cd Nim
  29. if ! ./koch runCI; then
  30. nim c -r tools/ci_testresults.nim
  31. exit 1
  32. fi
  33. triggers:
  34. - action: email
  35. condition: failure
  36. to: Andreas Rumpf <rumpf_a@web.de>