Skip to content

Commit bc63360

Browse files
committed
ci: build and run unit tests
1 parent 79ec028 commit bc63360

2 files changed

Lines changed: 45 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: macos-26
12+
timeout-minutes: 60
13+
env:
14+
CCACHE_DIR: ~/.ccache
15+
16+
steps:
17+
- name: Check out repository
18+
uses: actions/checkout@v6
19+
20+
- name: Install build dependencies
21+
run: brew install cmake ninja boost pkgconf ccache
22+
23+
- name: Restore ccache
24+
uses: actions/cache@v4
25+
with:
26+
path: ~/.ccache
27+
key: ccache-${{ runner.os }}-${{ hashFiles('Node.xcodeproj/project.pbxproj', 'scripts/build-libbitcoinkernel.sh', '.github/workflows/ci.yml') }}
28+
restore-keys: |
29+
ccache-${{ runner.os }}-
30+
31+
- name: Clone Bitcoin Core master
32+
run: git clone --depth=1 --branch=master https://github.com/bitcoin/bitcoin.git bitcoin-core
33+
34+
- name: Build and run unit tests
35+
run: |
36+
xcodebuild test \
37+
-project Node.xcodeproj \
38+
-scheme Node \
39+
-destination 'platform=macOS' \
40+
-only-testing:NodeTests \
41+
-derivedDataPath "$RUNNER_TEMP/DerivedData"

Node.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@
446446
"@executable_path/Frameworks",
447447
"@executable_path/../Frameworks",
448448
);
449-
MACOSX_DEPLOYMENT_TARGET = 26.2;
449+
MACOSX_DEPLOYMENT_TARGET = 26.0;
450450
MARKETING_VERSION = 1.0;
451451
PRODUCT_BUNDLE_IDENTIFIER = nl.sprovoost.Node;
452452
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -489,7 +489,7 @@
489489
"@executable_path/Frameworks",
490490
"@executable_path/../Frameworks",
491491
);
492-
MACOSX_DEPLOYMENT_TARGET = 26.2;
492+
MACOSX_DEPLOYMENT_TARGET = 26.0;
493493
MARKETING_VERSION = 1.0;
494494
PRODUCT_BUNDLE_IDENTIFIER = nl.sprovoost.Node;
495495
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -512,7 +512,7 @@
512512
CODE_SIGN_STYLE = Automatic;
513513
CURRENT_PROJECT_VERSION = 1;
514514
GENERATE_INFOPLIST_FILE = YES;
515-
MACOSX_DEPLOYMENT_TARGET = 26.2;
515+
MACOSX_DEPLOYMENT_TARGET = 26.0;
516516
MARKETING_VERSION = 1.0;
517517
PRODUCT_BUNDLE_IDENTIFIER = nl.sprovoost.NodeTests;
518518
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -532,7 +532,7 @@
532532
CODE_SIGN_STYLE = Automatic;
533533
CURRENT_PROJECT_VERSION = 1;
534534
GENERATE_INFOPLIST_FILE = YES;
535-
MACOSX_DEPLOYMENT_TARGET = 26.2;
535+
MACOSX_DEPLOYMENT_TARGET = 26.0;
536536
MARKETING_VERSION = 1.0;
537537
PRODUCT_BUNDLE_IDENTIFIER = nl.sprovoost.NodeTests;
538538
PRODUCT_NAME = "$(TARGET_NAME)";

0 commit comments

Comments
 (0)