Skip to content

Commit eb659ce

Browse files
committed
update workflows
1 parent 9d2f471 commit eb659ce

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,19 @@ name: CI
33
on:
44
push:
55
workflow_dispatch:
6+
inputs:
7+
buil-static:
8+
description: "Build static version of mgconsole"
9+
type: boolean
10+
required: false
11+
default: false
612
workflow_call:
13+
inputs:
14+
build-static:
15+
description: "Build static version of mgconsole"
16+
type: boolean
17+
required: false
18+
default: false
719

820
jobs:
921
build_and_test_ubuntu:
@@ -77,7 +89,7 @@ jobs:
7789
path: build/src/mgconsole
7890

7991
build_and_test_static:
80-
if: ${{ github.event_name == 'workflow_call' }}
92+
if: ${{ inputs.build-static }}
8193
strategy:
8294
fail-fast: false
8395
matrix:

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ jobs:
7676
build-binaries:
7777
name: Build binaries
7878
uses: ./.github/workflows/ci.yml
79+
with:
80+
build-static: true
7981

8082
upload-binaries:
8183
name: Upload binaries

0 commit comments

Comments
 (0)