-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (39 loc) · 1.26 KB
/
stack-macos.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
name: stack-macos
on: [push, pull_request]
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Setup packages
run: |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install libomp || true
wget -qO- https://get.haskellstack.org/ | sh || true
clang --version
stack --version
brew tap hasktorch/libtorch-prebuild https://github.com/hasktorch/homebrew-libtorch-prebuild || true
brew install [email protected] || true
brew tap hasktorch/tokenizers https://github.com/hasktorch/tokenizers || true
brew install libtokenizers || true
- name: Cache .stack
id: cache-stack
uses: actions/cache@v2
with:
path: |
~/.stack
.stack-work
key: "\
${{ runner.os }}-stack\
-${{ hashFiles('**/stack.yaml.lock') }}\
-${{ hashFiles('**/package.yaml') }}\
"
restore-keys: |
${{ runner.os }}-stack-
- name: build
run: |
stack build
stack install openmemex:exe:server
- name: run
run: |
stack run server --help