diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 49875322f..a99678a20 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,10 @@ jobs: name: Build binaries runs-on: ${{ matrix.os }} + defaults: + run: + shell: bash + steps: - uses: actions/checkout@v4 with: @@ -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 @@ -51,13 +54,15 @@ 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 @@ -65,13 +70,11 @@ jobs: # # 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