Skip to content

Commit

Permalink
fixup! fixup! ci: add windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelrogstad committed Jan 17, 2024
1 parent e6e3d53 commit b334824
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:

name: Build binaries
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -41,7 +45,6 @@ jobs:
# List of existing Windows package on the runners
# https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md
working-directory: dlfcn-win32
shell: bash
run: |
./configure --prefix=/ --libdir=${{ github.workspace }}/dlfcn-win32/libdir --incdir=${{ github.workspace }}/dlfcn-win32/incdir
make
Expand All @@ -51,27 +54,27 @@ jobs:
with:
target: ${{ runner.os == 'Windows' && 'x86_64-pc-windows-gnu' || '' }}

- name: set CARGO_FLAGS
if: runner.os == 'Windows'
run: CARGO_FLAGS="--target x86_64-pc-windows-gnu" >> $GITHUB_ENV

- name: Compile rust lib
shell: bash
working-directory: work
run: make rust
run: cargo build --manifest-path ./drivechain/Cargo.toml $CARGO_FLAGS

- name: bash the head
shell: bash
working-directory: work
run: cat drivechain/target/.rustc_info.json

# # For some arcane reason there's a difference in what library files
# # are produced on my (Torkel) local machine and CI. Locally, the
# - name: shuffle around libs
# if: runner.os == 'Windows'
# shell: bash
# working-directory: work
# run: |
# cp drivechain/target/debug/drivechain_eth.d drivechain/target/debug/libdrivechain_eth.d

- name: Compile binary
shell: bash
working-directory: work
run: make geth

Expand Down

0 comments on commit b334824

Please sign in to comment.