|
28 | 28 | run: make -C ./depends download-linux
|
29 | 29 |
|
30 | 30 | - name: build dependencies
|
31 |
| - run: make -C ./depends |
| 31 | + run: make -C ./depends -j |
32 | 32 |
|
33 | 33 | - run: ./autogen.sh
|
34 | 34 |
|
|
57 | 57 | src/zsided
|
58 | 58 | src/zside-cli
|
59 | 59 |
|
| 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 |
60 | 99 |
|
61 | 100 | build-macos:
|
62 | 101 | name: Build macOS binaries
|
|
83 | 122 | run: make -C ./depends download-osx
|
84 | 123 |
|
85 | 124 | - name: build dependencies
|
86 |
| - run: make -C ./depends |
| 125 | + run: make -C ./depends -j |
87 | 126 |
|
88 | 127 | - run: ./autogen.sh
|
89 | 128 |
|
|
0 commit comments