Skip to content

Commit 6880b5a

Browse files
committed
ci: add windows builds
1 parent 6d6c7f7 commit 6880b5a

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

.github/workflows/build.yml

+40-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: make -C ./depends download-linux
2929

3030
- name: build dependencies
31-
run: make -C ./depends
31+
run: make -C ./depends -j
3232

3333
- run: ./autogen.sh
3434

@@ -57,6 +57,44 @@ jobs:
5757
src/zsided
5858
src/zside-cli
5959
60+
build-windows:
61+
name: Build Windows binaries
62+
runs-on: ubuntu-latest
63+
steps:
64+
# https://zcash.readthedocs.io/en/master/rtd_pages/Debian-Ubuntu-build.html
65+
- uses: actions/checkout@v3
66+
67+
- name: Cache dependencies
68+
uses: actions/cache@v3
69+
with:
70+
path: ./depends
71+
key: Windows-${{ hashFiles('depends/packages/**') }}
72+
73+
- name: Run build in Docker
74+
uses: addnab/docker-run-action@v3
75+
with:
76+
image: electriccoinco/zcashd-build-ubuntu-jammy
77+
options: -v ${{ github.workspace }}:/zside --workdir=/zside
78+
shell: bash
79+
run: |
80+
make -C ./depends download-win
81+
HOST=x86_64-w64-mingw32 make -C ./depends -j
82+
export CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site
83+
./autogen.sh
84+
./configure --disable-tests --disable-bench --disable-hardening --enable-online-rust
85+
make -C src cargo-build-lib
86+
BRIDGE_LOCATION=$(dirname $(./contrib/devtools/find-libcxxbridge.sh))
87+
export LDFLAGS="-L$BRIDGE_LOCATION -lcxxbridge1"
88+
./configure --disable-tests --disable-bench --disable-hardening --enable-online-rust
89+
make -j
90+
91+
- uses: actions/upload-artifact@v4
92+
with:
93+
name: binaries-Windows
94+
if-no-files-found: error
95+
path: |
96+
src/zsided.exe
97+
src/zside-cli.exe
6098
6199
build-macos:
62100
name: Build macOS binaries
@@ -83,7 +121,7 @@ jobs:
83121
run: make -C ./depends download-osx
84122

85123
- name: build dependencies
86-
run: make -C ./depends
124+
run: make -C ./depends -j
87125

88126
- run: ./autogen.sh
89127

0 commit comments

Comments
 (0)