-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1 KB
/
turnstyle.yaml
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
# This workflow will run stuff on the turnstyle version of tictactoe.
name: turnstyle
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: main/tictactoe_turnstyle
steps:
- name: Checkout turnstyle
uses: actions/checkout@v4
with:
repository: JanEricNitschke/turnstyle
path: turnstyle
- name: Setup haskell
uses: haskell-actions/setup@v2
with:
ghc-version: '9.10.1'
- name: Checkout repo
uses: actions/checkout@v4
with:
path: main
- name: Install turnstyle
run: cabal install --user
working-directory: turnstyle
- name: Build
run: turnstyle compile -o CI.png tictactoe.txt
- name: Run
run: |
turnstyle run tictactoe.png < input1.txt
turnstyle run tictactoe_opt.png < input1.txt
turnstyle run tictactoe.png < input2.txt
turnstyle run tictactoe_opt.png < input2.txt