-
-
Notifications
You must be signed in to change notification settings - Fork 14
47 lines (40 loc) · 1.18 KB
/
ci-native.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
42
43
44
45
46
47
name: 🧪 Tests (Native)
# Trigger the workflow on push or pull request, but only for the main branch
on:
pull_request:
push:
branches: [main]
jobs:
stack:
name: 🖥️ ${{ matrix.os }} 🏭 GHC ${{ matrix.ghc }} 📚 Stack ${{ matrix.stack }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
stack:
- "2.9.1"
ghc:
- "8.10.7"
os:
- macos-11
- macos-12
- ubuntu-20.04
- ubuntu-22.04
steps:
- uses: actions/checkout@v3
name: 📤 Checkout
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main'
- uses: ./.github/actions/secp256k1
name: 📦 Build and install libsecp256k1
- uses: haskell/actions/setup@v2
name: 🧱 Set up Haskell Stack
with:
ghc-version: ${{ matrix.ghc }}
stack-version: ${{ matrix.stack }}
- uses: actions/cache@v3
name: 🗄️ Cache ~/.stack
with:
path: ~/.stack
key: ${{ matrix.os }}-${{ matrix.ghc }}-stack-ci-2
- name: 🧪 Test
run: |
stack test --no-nix