-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.36 KB
/
Copy path__generate_image_variants.yml
File metadata and controls
53 lines (51 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: _Generate image variants
on:
workflow_call:
inputs:
php_versions:
type: string
required: true
outputs:
values:
description: "Result"
value: ${{ jobs.variants.outputs.values }}
jobs:
yq:
runs-on: ubuntu-latest
steps:
- env:
VALUE: |
- variant: ""
configure_append: ""
optimize_options_c_cpp: "-O2"
optimize_options_ld: "-O1"
- variant: "-debug"
configure_append: "--enable-debug"
optimize_options_c_cpp: "-O0"
optimize_options_ld: "-O0"
- variant: "-opt"
configure_append: ""
optimize_options_c_cpp: "-O3"
optimize_options_ld: "-O2"
id: yq
run: |
echo values=$(echo "${VALUE}" | yq -o=json) >> $GITHUB_OUTPUT
outputs:
values: ${{ steps.yq.outputs.values }}
mixin:
needs: yq
uses: ./.github/workflows/_mixin_values.yml
with:
base: ${{ inputs.php_versions }}
join: ${{ needs.yq.outputs.values }}
variants:
needs: mixin
runs-on: ubuntu-latest
steps:
- env:
RESULT: ${{ needs.mixin.outputs.values }}
id: variants
run: |
echo "values=${RESULT}" >> $GITHUB_OUTPUT
outputs:
values: ${{ steps.variants.outputs.values }}