~sschwarzer/sudoku-solver

ref: 808c2419d746d1d53a73c7596aaabacdc9bb9d39 sudoku-solver/.build.yml -rw-r--r-- 1.6 KiB
808c2419Stefan Schwarzer Install dependencies automatically 5 months ago
                                                                                
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
38
39
40
41
42
43
44
45
46
47
48
49
image: ubuntu/lts

packages:
- libssl-dev

sources:
- git+https://git.sr.ht/~sschwarzer/sudoku-solver

tasks:
- install-racket: |
    echo "Installing Racket ..."
    curl https://mirror.racket-lang.org/installers/8.5/racket-8.5-x86_64-linux-cs.sh -sS -o racket-x86_64-linux-cs.sh
    sh racket-x86_64-linux-cs.sh --in-place --dest ~/racket
    export PATH=$HOME/racket/bin:$PATH
    # Necessary for `raco cross` to work
    raco pkg config --scope installation --set default-scope installation
    raco pkg install --deps search-auto raco-cross
- build: |
    export PATH=$HOME/racket/bin:$PATH
    cd sudoku-solver
    # Implicitly install dependencies.
    raco pkg install --deps search-auto
    raco exe --orig-exe -o sudoku-solver games/sudoku-solver.rkt
- test: |
    export PATH=$HOME/racket/bin:$PATH
    cd sudoku-solver
    raco test games/sudoku-solver
- run: |
    cd sudoku-solver
    ./sudoku-solver --help
    ./sudoku-solver --color --stats \
      --progress-text-file progress.txt --progress-dot-file progress.dot \
      games/sudoku-solver/examples/wikipedia_article.txt
    ls progress.txt progress.dot
- build-all: |
    export PATH=$HOME/racket/bin:$PATH
    cd sudoku-solver
    make build-all

artifacts:
- sudoku-solver/build/x86_64-linux/sudoku-solver-0.15.2-x86_64-linux
- sudoku-solver/build/x86_64-windows/sudoku-solver-0.15.2-x86_64-windows.exe
- sudoku-solver/build/x86_64-macosx/sudoku-solver-0.15.2-x86_64-macosx
- sudoku-solver/build/aarch64-macosx/sudoku-solver-0.15.2-aarch64-macosx

triggers:
- action: email
  condition: failure
  to: Stefan Schwarzer <sschwarzer@sschwarzer.net>