-
-
Notifications
You must be signed in to change notification settings - Fork 14
63 lines (53 loc) · 1.67 KB
/
artifacts-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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 🏺 Artifacts (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: 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-native-4
- uses: ./.github/actions/secp256k1
name: 📦 Build and install libsecp256k1
- name: 📦 Install dependencies
run: |
stack build --no-nix --only-dependencies
- name: 🏗️ Build
run: |
stack build --no-nix
- name: 🏺 Upload CLI Artifact
uses: actions/upload-artifact@v2
with:
name: fission-cli-${{ matrix.os }}
path: ./.stack-work/**/bin/fission
- name: 🏺 Upload Server Artifact
uses: actions/upload-artifact@v2
with:
name: fission-server-${{ matrix.os }}
path: ./.stack-work/**/bin/fission-server