-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (35 loc) · 1.39 KB
/
main.yml
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
on:
workflow_dispatch:
jobs:
compile_idris:
name: Formal verification
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Cache LinuxBrew
id: cache-linuxbrew
uses: actions/cache@v3
with:
path: /home/linuxbrew/
key: ${{ runner.os }}-${{ matrix.ghc }}
- name: Install Brew
if: steps.cache-linuxbrew.outputs.cache-hit != 'true'
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Install Idris
if: steps.cache-linuxbrew.outputs.cache-hit != 'true'
run: /home/linuxbrew/.linuxbrew/bin/brew install idris2
- name: Search for Idris (to speed up trial-and-failure loop)
run: |
echo $PATH
find /home/linuxbrew/ -name "*idris2*"
- name: Compile formal description
run: /home/linuxbrew/.linuxbrew/bin/idris2 ./freelance-highlevel.idr -o ./contracts-fd
- name: Show directory to locate executable (to speed up trial-and-failure loop)
run: tree -D
- name: Dump .TTC file
run: cat ./build/ttc/freelance-highlevel.ttc
- name: Dump .TTM file
run: cat ./build/ttc/freelance-highlevel.ttm
- name: Test executable
run: /home/linuxbrew/.linuxbrew/bin/scheme-script ./build/exec/contracts-fd_app/contracts-fd.ss