Skip to content

Commit

Permalink
Add workflow_call
Browse files Browse the repository at this point in the history
  • Loading branch information
dixyes committed Oct 1, 2023
1 parent cb2b2fd commit ba3b1cc
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 3 deletions.
45 changes: 42 additions & 3 deletions .github/workflows/linux-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,48 @@ on:
description: "upload binaries to releases, otherwise only upload via artifact"
required: false
default: ""

# schedule:
# - cron: "33 4 * * *"
workflow_call:
inputs:
flavors:
description: "flavors, comma splited, empty for 'min,lite,max-swow', available: min, lite, max[-eventengine, like swow/swoole/libev], custom"
required: false
type: string
default: ""
archs:
description: "archs, comma splited, empty for all, available: x86_64, aarch64"
required: false
type: string
default: ""
sapis:
description: "SAPIs, comma splited, empty for all, available: micro, micro-cli, cli"
required: false
type: string
default: ""
libcs:
description: "libcs, comma splited, empty for all, available: musl, glibc"
required: false
type: string
default: ""
phpVers:
description: "PHP versions, empty for all, available: 8.0, 8.1, 8.2"
required: false
type: string
default: ""
customExtensions:
description: "custom extensions, used for custom flavor build"
required: false
type: string
default: ""
customLibraries:
description: "custom libraries, used for custom flavor build"
required: false
type: string
default: ""
uploadRelease:
description: "upload binaries to releases, otherwise only upload via artifact"
required: false
type: string
default: ""

jobs:
gen-jobs:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/macos-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,43 @@ on:
description: "upload binaries to releases, otherwise only upload via artifact"
required: false
default: ""
workflow_call:
inputs:
flavors:
description: "flavors, comma splited, empty for 'min,lite,max-swow', available: min, lite, max[-eventengine, like swow/swoole/libev], custom"
required: false
type: string
default: ""
archs:
description: "archs, comma splited, empty for all, available: x86_64, arm64"
required: false
type: string
default: ""
sapis:
description: "SAPIs, comma splited, empty for all, available: micro, micro-cli, cli"
required: false
type: string
default: ""
phpVers:
description: "PHP versions, empty for all, available: 8.0, 8.1, 8.2"
required: false
type: string
default: ""
customExtensions:
description: "custom extensions, used for custom flavor build"
required: false
type: string
default: ""
customLibraries:
description: "custom libraries, used for custom flavor build"
required: false
type: string
default: ""
uploadRelease:
description: "upload binaries to releases, otherwise only upload via artifact"
required: false
type: string
default: ""

jobs:
gen-jobs:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/windows-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,43 @@ on:
description: "upload binaries to releases, otherwise only upload via artifact"
required: false
default: ""
workflow_call:
inputs:
flavors:
description: "flavors, comma splited, empty for 'min,lite,max-swow', available: min, lite, max[-eventengine, like swow/swoole/libev], custom"
required: false
type: string
default: ""
archs:
description: "archs, comma splited, empty for all, available: x64, arm64"
required: false
type: string
default: ""
sapis:
description: "SAPIs, comma splited, empty for all, available: micro, micro-cli, cli"
required: false
type: string
default: ""
phpVers:
description: "PHP versions, empty for all, available: 8.0, 8.1, 8.2"
required: false
type: string
default: ""
customExtensions:
description: "custom extensions, used for custom flavor build"
required: false
type: string
default: ""
customLibraries:
description: "custom libraries, used for custom flavor build"
required: false
type: string
default: ""
uploadRelease:
description: "upload binaries to releases, otherwise only upload via artifact"
required: false
type: string
default: ""

jobs:
gen-jobs:
Expand Down

0 comments on commit ba3b1cc

Please sign in to comment.