-
Notifications
You must be signed in to change notification settings - Fork 168
51 lines (43 loc) · 1.16 KB
/
Copy pathmacos.yml
File metadata and controls
51 lines (43 loc) · 1.16 KB
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
name: macos
on:
push:
branches: [ master ]
paths-ignore: [ '**.md', 'docs/**' ]
pull_request:
branches: [ master ]
paths-ignore: [ '**.md', 'docs/**' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
macos:
runs-on: macos-latest
name: A job to build and run strfry on macOS
steps:
- name: Checkout strfry
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install dependencies
run: |
brew update
brew install pkg-config libtool openssl zlib lmdb flatbuffers secp256k1 zstd libuv perl
cpan JSON::XS
- name: Build strfry
run: |
git submodule update --init
make setup-golpe
make -j$(sysctl -n hw.logicalcpu)
if ! [ -f ./strfry ]; then
echo "Strfry build failed."
exit 1
fi
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 22
- name: Install Node dependencies
working-directory: test
run: npm ci
- name: Run tests
run: ./test/runTests.sh