summary refs log tree commit diff stats
path: root/.builds/freebsd.yml
blob: ef2e8f44d07157c8f325434f48fe5d7d92cffd2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# see https://man.sr.ht/builds.sr.ht/compatibility.md#freebsd
image: freebsd/latest

# packages:
# - databases/sqlite3
# - devel/boehm-gc-threaded
# - devel/pcre
# - devel/sdl20
# - devel/sfml
# - www/node
# - devel/gmake
# - devel/git
sources:
- https://github.com/nim-lang/Nim
environment:
  CC: /usr/bin/clang
tasks:
- setup: |
    # workaround https://github.com/timotheecour/Nim/issues/76
    sudo pkg update -q -f
    sudo pkg install -y -q databases/sqlite3 devel/boehm-gc-threaded devel/pcre \
      devel/sdl20 devel/sfml www/node devel/gmake devel/git
    cd Nim
    git clone --depth 1 -q https://github.com/nim-lang/csources.git
    gmake -C csources -j $(sysctl -n hw.ncpu)
    bin/nim c --skipUserCfg --skipParentCfg koch
    echo 'export PATH=$HOME/Nim/bin:$PATH' >> $HOME/.buildenv
- test: |
    cd Nim
    if ! ./koch runCI; then
      nim c -r tools/ci_testresults.nim
      exit 1
    fi
triggers:
- action: email
  condition: failure
  to: Andreas Rumpf <rumpf_a@web.de>