Skip to content

Commit 4ebbe60

Browse files
committed
ci: add windows builds
1 parent 6d6c7f7 commit 4ebbe60

File tree

1 file changed

+41
-2
lines changed

1 file changed

+41
-2
lines changed

.github/workflows/build.yml

+41-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,45 @@ 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+
set -e
81+
make -C ./depends download-win
82+
HOST=x86_64-w64-mingw32 make -C ./depends
83+
export CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site
84+
./autogen.sh
85+
./configure --disable-tests --disable-bench --disable-hardening --enable-online-rust
86+
make -C src cargo-build-lib
87+
BRIDGE_LOCATION=$(dirname $(./contrib/devtools/find-libcxxbridge.sh))
88+
export LDFLAGS="-L$BRIDGE_LOCATION -lcxxbridge1"
89+
./configure --disable-tests --disable-bench --disable-hardening --enable-online-rust
90+
make -j
91+
92+
- uses: actions/upload-artifact@v4
93+
with:
94+
name: binaries-Windows
95+
if-no-files-found: error
96+
path: |
97+
src/zsided.exe
98+
src/zside-cli.exe
6099
61100
build-macos:
62101
name: Build macOS binaries
@@ -83,7 +122,7 @@ jobs:
83122
run: make -C ./depends download-osx
84123

85124
- name: build dependencies
86-
run: make -C ./depends
125+
run: make -C ./depends -j
87126

88127
- run: ./autogen.sh
89128

0 commit comments

Comments
 (0)