Skip to content

Commit fa6ba7c

Browse files
committed
feat(b2-workflow): support link=static
1 parent bfb2b60 commit fa6ba7c

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

b2-workflow/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,13 @@ inputs:
9696
shared:
9797
description: |
9898
Determines if the `link` option should be `shared` so that it creates shared libraries.
99+
When the input is `true`, the `link` option is `shared`. When it is `false`, the `link` option is `static`.
99100
100101
If the input is not specified, the action will use the value defined by the environment variable `BUILD_SHARED_LIBS`.
101102
102-
If the environment variable is not specified, the action will use the default value as identified by B2.
103+
If the environment variable is not specified, the action will use the default value as identified by B2,
104+
which sets no value for the `link` option and defaults to `shared`.
105+
103106
required: false
104107
default: ''
105108
toolset:

b2-workflow/dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

b2-workflow/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

b2-workflow/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,10 @@ async function main(inputs) {
162162
if (inputs.threading) {
163163
b2_args.push(`threading=${inputs.threading}`)
164164
}
165-
if (inputs.shared) {
165+
if (inputs.shared === true) {
166166
b2_args.push('link=shared')
167+
} else if (inputs.shared === false) {
168+
b2_args.push('link=static')
167169
}
168170

169171
// The user can provide these options as a boolean (true/false) or as any

0 commit comments

Comments
 (0)