-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.49 KB
/
ci.yml
File metadata and controls
51 lines (43 loc) · 1.49 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: CI
on:
push:
branches:
- master
pull_request:
jobs:
build-and-test:
runs-on: macos-26
timeout-minutes: 60
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Install build dependencies
run: brew install cmake ninja boost pkgconf ccache
- name: Restore ccache
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ runner.os }}-${{ hashFiles('Node.xcodeproj/project.pbxproj', 'scripts/build-libbitcoinkernel.sh', '.github/workflows/ci.yml') }}
restore-keys: |
ccache-${{ runner.os }}-
- name: Clone Bitcoin Core master
run: git clone --depth=1 --branch=master https://github.com/bitcoin/bitcoin.git bitcoin-core
- name: Build and run unit tests
run: |
xcodebuild test \
-project Node.xcodeproj \
-scheme Node \
-destination 'platform=macOS' \
-only-testing:NodeTests \
-derivedDataPath "$RUNNER_TEMP/DerivedData"
- name: Build and run unit tests (logging disabled)
run: |
xcodebuild test \
-project Node.xcodeproj \
-scheme Node \
-destination 'platform=macOS' \
-only-testing:NodeTests \
-derivedDataPath "$RUNNER_TEMP/DerivedData-NoLogging" \
SWIFT_ACTIVE_COMPILATION_CONDITIONS='DISABLE_KERNEL_LOGGING'