-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.2 KB
/
stack.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
48
49
50
51
52
53
54
name: Stack CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: haskell-actions/setup@v2
with:
ghc-version: '9.2.8'
enable-stack: true
stack-version: 'latest'
# install z3
- name: Setup Z3
id: z3
uses: cda-tum/setup-z3@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/cache@v1
name: Cache .stack-work
with:
path: .stack-work
key: stack-work
- uses: actions/cache@v1
name: Cache ~/.stack
with:
path: ~/.stack
key: stack
- name: Build
run: stack build
- name: Run fast tests
run: stack test salsa20:test:salsa20-fast-unit-tests
- name: Run ECRYPT 128 bits key size tests
run: stack test salsa20:test:salsa20-ecrypt128-tests
- name: Run ECRYPT 256 bits key size tests
run: stack test salsa20:test:salsa20-ecrypt256-tests
- name: Run display tests
run: stack test salsa20:test:salsa20-display-unit-tests