Skip to content

Commit cde8df3

Browse files
committed
Add windows CI job
1 parent 84c52ff commit cde8df3

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,43 @@ jobs:
5656
- name: Run tests
5757
run: make test
5858

59+
windows:
60+
name: Build and Test on Windows
61+
runs-on: windows-latest
62+
63+
steps:
64+
- uses: actions/checkout@v4
65+
66+
- name: Set up Go
67+
uses: actions/setup-go@v5
68+
with:
69+
go-version: '1.23.3'
70+
71+
- name: Install Boost library
72+
run: |
73+
git clone https://github.com/microsoft/vcpkg.git
74+
cd vcpkg
75+
.\bootstrap-vcpkg.bat
76+
.\vcpkg install boost-multi-index:x64-windows boost-headers:x64-windows
77+
78+
- name: Set environment variables
79+
run: |
80+
echo "BOOST_ROOT=$env:GITHUB_WORKSPACE\vcpkg\installed\x64-windows" | Out-File -FilePath $env:GITHUB_ENV -Append
81+
echo "BOOST_INCLUDEDIR=$env:GITHUB_WORKSPACE\vcpkg\installed\x64-windows\include" | Out-File -FilePath $env:GITHUB_ENV -Append
82+
echo "$env:GITHUB_WORKSPACE\depend\bitcoin\build\bin\RelWithDebInfo" | Out-File -FilePath $env:GITHUB_PATH -Append
83+
84+
- name: Install make
85+
run: choco install make
86+
87+
- name: Build Kernel
88+
run: make build-kernel
89+
90+
- name: Build
91+
run: make build
92+
93+
- name: Run tests
94+
run: make test
95+
5996
lint:
6097
name: Lint
6198
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)