Skip to content

Commit

Permalink
ci: Let GH CI skip build targets specified in GH CI settings
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Feb 25, 2025
1 parent d5e3d46 commit d7f816d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ permissions:

env:
DOCKER_DRIVER: overlay2
FAST_MODE: false

jobs:
container:
Expand All @@ -21,6 +20,7 @@ jobs:
name: arm-linux-gnueabihf
uses: ./.github/workflows/build-depends.yml
needs: [container]
if: ${{ vars.SKIP_ARM_LINUX == '' }}
with:
build-target: arm-linux
container-path: ${{ needs.container.outputs.path }}
Expand All @@ -29,6 +29,11 @@ jobs:
name: x86_64-pc-linux-gnu
uses: ./.github/workflows/build-depends.yml
needs: [container]
if: |
vars.SKIP_LINUX64 == '' ||
vars.SKIP_LINUX64_FUZZ == '' ||
vars.SKIP_LINUX64_SQLITE == '' ||
vars.SKIP_LINUX64_UBSAN == ''
with:
build-target: linux64
container-path: ${{ needs.container.outputs.path }}
Expand All @@ -37,6 +42,9 @@ jobs:
name: x86_64-pc-linux-gnu_multiprocess
uses: ./.github/workflows/build-depends.yml
needs: [container]
if: |
vars.SKIP_LINUX64_MULTIPROCESS == '' ||
vars.SKIP_LINUX64_TSAN == ''
with:
build-target: linux64_multiprocess
container-path: ${{ needs.container.outputs.path }}
Expand All @@ -45,6 +53,7 @@ jobs:
name: x86_64-pc-linux-gnu_nowallet
uses: ./.github/workflows/build-depends.yml
needs: [container]
if: ${{ vars.SKIP_LINUX64_NOWALLET == '' }}
with:
build-target: linux64_nowallet
container-path: ${{ needs.container.outputs.path }}
Expand All @@ -53,6 +62,7 @@ jobs:
name: x86_64-apple-darwin
uses: ./.github/workflows/build-depends.yml
needs: [container]
if: ${{ vars.SKIP_MAC == '' }}
with:
build-target: mac
container-path: ${{ needs.container.outputs.path }}
Expand All @@ -61,6 +71,7 @@ jobs:
name: x86_64-w64-mingw32
uses: ./.github/workflows/build-depends.yml
needs: [container]
if: ${{ vars.SKIP_WIN64 == '' }}
with:
build-target: win64
container-path: ${{ needs.container.outputs.path }}
Expand All @@ -78,6 +89,7 @@ jobs:
name: linux64-build
uses: ./.github/workflows/build-src.yml
needs: [container, depends-linux64]
if: ${{ vars.SKIP_LINUX64 == '' }}
with:
build-target: linux64
container-path: ${{ needs.container.outputs.path }}
Expand All @@ -87,6 +99,7 @@ jobs:
name: linux64_fuzz-build
uses: ./.github/workflows/build-src.yml
needs: [container, depends-linux64]
if: ${{ vars.SKIP_LINUX64_FUZZ == '' }}
with:
build-target: linux64_fuzz
container-path: ${{ needs.container.outputs.path }}
Expand All @@ -96,6 +109,7 @@ jobs:
name: linux64_multiprocess-build
uses: ./.github/workflows/build-src.yml
needs: [container, depends-linux64_multiprocess]
if: ${{ vars.SKIP_LINUX64_MULTIPROCESS == '' }}
with:
build-target: linux64_multiprocess
container-path: ${{ needs.container.outputs.path }}
Expand All @@ -114,6 +128,7 @@ jobs:
name: linux64_sqlite-build
uses: ./.github/workflows/build-src.yml
needs: [container, depends-linux64]
if: ${{ vars.SKIP_LINUX64_SQLITE == '' }}
with:
build-target: linux64_sqlite
container-path: ${{ needs.container.outputs.path }}
Expand All @@ -123,6 +138,7 @@ jobs:
name: linux64_tsan-build
uses: ./.github/workflows/build-src.yml
needs: [container, depends-linux64_multiprocess]
if: ${{ vars.SKIP_LINUX64_TSAN == '' }}
with:
build-target: linux64_tsan
container-path: ${{ needs.container.outputs.path }}
Expand All @@ -132,6 +148,7 @@ jobs:
name: linux64_ubsan-build
uses: ./.github/workflows/build-src.yml
needs: [container, depends-linux64]
if: ${{ vars.SKIP_LINUX64_UBSAN == '' }}
with:
build-target: linux64_ubsan
container-path: ${{ needs.container.outputs.path }}
Expand Down

0 comments on commit d7f816d

Please sign in to comment.