-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (51 loc) · 1.56 KB
/
test-mac.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
55
56
57
58
59
60
61
name: test-mac
on:
pull_request:
push:
branches: master
jobs:
test-macOS:
runs-on: macos-latest
timeout-minutes: 60
steps:
- name: Install brew
run: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- name: Install dependencies via brew
run: |
brew update && brew cleanup
brew install autoconf automake libtool
brew install [email protected]
brew install gmp
brew install grpc
brew install rocksdb
brew install protobuf
- uses: actions/checkout@v1
- name: Install secp256k1 from source
run: cd ci && ./install-secp256k1.sh
- name: Install libevent from source
run: |
export OPENSSL_ROOT_DIR="/usr/local/opt/[email protected]"
cd ci && ./install-libevent.sh
- name: Install googletest from source
run: cd ci && ./install-googletest.sh
- name: cmake
run: |
export OPENSSL_ROOT_DIR="/usr/local/opt/[email protected]"
mkdir build && cd build && cmake -DCAMKE_BUILD_TYPE=Release ..
- name: make
run: cd build && make -j2
- name: Run epic test
run: |
ulimit -c unlimited -S
ulimit -a
sudo chmod o+w /cores
cd ./bin
./epictest
- name: Core dump
if: failure()
run: |
cd ./bin
ls /cores
COREFILE=$(find /cores -maxdepth 1 -name "core*" | tail -n 1)
echo $COREFILE
if [[ -f "$COREFILE" ]]; then lldb ./epictest -c $COREFILE --batch --one-line "bt"; fi