Skip to content

Commit

Permalink
ci: specify options when building dependencies on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Nov 9, 2024
1 parent c38d8ae commit 4538870
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,28 @@ jobs:
include:
- build_target: arm-linux
host: arm-linux-gnueabihf
dep_opts: DEBUG=1 NO_UPNP=1
- build_target: linux64
host: x86_64-pc-linux-gnu
dep_opts: DEBUG=1
- build_target: linux64_tsan
host: x86_64-pc-linux-gnu
dep_opts: DEBUG=1
- build_target: linux64_ubsan
host: x86_64-pc-linux-gnu
dep_opts: ""
- build_target: linux64_fuzz
host: x86_64-pc-linux-gnu
dep_opts: DEBUG=1
- build_target: linux64_cxx20
host: x86_64-pc-linux-gnu
dep_opts: DEBUG=1
- build_target: linux64_sqlite
host: x86_64-pc-linux-gnu
dep_opts: DEBUG=1 NO_BDB=1
- build_target: linux64_nowallet
host: x86_64-pc-linux-gnu
dep_opts: DEBUG=1 NO_WALLET=1

container:
image: ghcr.io/${{ needs.build-image.outputs.repo-name }}/dashcore-ci-runner:${{ needs.build-image.outputs.image-tag }}
Expand All @@ -90,7 +98,6 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}


- name: Cache depends sources
uses: actions/cache@v4
with:
Expand All @@ -111,7 +118,7 @@ jobs:
${{ runner.os }}-depends-${{ matrix.build_target }}
- name: Build dependencies
run: make -j$(nproc) -C depends HOST=${{ matrix.host }}
run: make -j$(nproc) -C depends HOST=${{ matrix.host }} ${{ matrix.dep_opts }}

build:
name: Build
Expand Down Expand Up @@ -146,7 +153,6 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}


- name: Restore Cache dependencies
uses: actions/cache/restore@v4
with:
Expand Down

0 comments on commit 4538870

Please sign in to comment.