-
-
Notifications
You must be signed in to change notification settings - Fork 848
129 lines (119 loc) · 4.18 KB
/
ci-requiring-tokens.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: CI Builds requiring mapbox tokens
on:
workflow_call:
inputs:
NVMRC:
required: true
type: string
env_name:
required: false
type: string
default: default
ref:
required: false
type: string
secrets:
MAPBOX_ACCESS_TOKEN:
required: false
MAPBOX_DOWNLOAD_TOKEN:
required: false
ENV_MAPBOX_ACCESS_TOKEN:
required: false
ENV_MAPBOX_DOWNLOAD_TOKEN:
required: false
concurrency:
group: ${{ github.head_ref || github.run_id }}-ci-with-tokens
cancel-in-progress: true
jobs:
call_android_workflow:
name: "Android/Mapbox"
uses: ./.github/workflows/android-actions.yml
with:
env_name: ${{ inputs.env_name }}
ref: ${{ inputs.ref }}
NVMRC: ${{ inputs.NVMRC }}
MAP_IMPL: mapbox
secrets:
MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }}
MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.MAPBOX_DOWNLOAD_TOKEN }}
ENV_MAPBOX_ACCESS_TOKEN: ${{ secrets.ENV_MAPBOX_ACCESS_TOKEN }}
ENV_MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.ENV_MAPBOX_DOWNLOAD_TOKEN }}
call_android_workflow_fabric:
name: "Android/Mapbox/Fabric"
uses: ./.github/workflows/android-actions.yml
with:
env_name: ${{ inputs.env_name }}
ref: ${{ inputs.ref }}
NVMRC: ${{ inputs.NVMRC }}
MAP_IMPL: mapbox
NEW_ARCH: true
secrets:
MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }}
MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.MAPBOX_DOWNLOAD_TOKEN }}
ENV_MAPBOX_ACCESS_TOKEN: ${{ secrets.ENV_MAPBOX_ACCESS_TOKEN }}
ENV_MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.ENV_MAPBOX_DOWNLOAD_TOKEN }}
call_android_workflow_11:
name: "Android/Mapbox11"
uses: ./.github/workflows/android-actions.yml
with:
env_name: ${{ inputs.env_name }}
ref: ${{ inputs.ref }}
NVMRC: ${{ inputs.NVMRC }}
MAP_IMPL: mapbox11
secrets:
MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }}
MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.MAPBOX_DOWNLOAD_TOKEN }}
ENV_MAPBOX_ACCESS_TOKEN: ${{ secrets.ENV_MAPBOX_ACCESS_TOKEN }}
ENV_MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.ENV_MAPBOX_DOWNLOAD_TOKEN }}
call_ios_workflow:
name: "iOS/Mapbox"
uses: ./.github/workflows/ios-actions.yml
with:
env_name: ${{ inputs.env_name }}
ref: ${{ inputs.ref }}
NVMRC: ${{ inputs.NVMRC }}
MAP_IMPL: mapbox
secrets:
MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }}
MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.MAPBOX_DOWNLOAD_TOKEN }}
ENV_MAPBOX_ACCESS_TOKEN: ${{ secrets.ENV_MAPBOX_ACCESS_TOKEN }}
ENV_MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.ENV_MAPBOX_DOWNLOAD_TOKEN }}
call_ios_workflow_fabric:
name: "iOS/Mapbox/Fabric"
uses: ./.github/workflows/ios-actions.yml
with:
env_name: ${{ inputs.env_name }}
ref: ${{ inputs.ref }}
NVMRC: ${{ inputs.NVMRC }}
MAP_IMPL: mapbox
NEW_ARCH: true
secrets:
MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }}
MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.MAPBOX_DOWNLOAD_TOKEN }}
ENV_MAPBOX_ACCESS_TOKEN: ${{ secrets.ENV_MAPBOX_ACCESS_TOKEN }}
ENV_MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.ENV_MAPBOX_DOWNLOAD_TOKEN }}
call_ios_workflow_11:
name: "iOS/Mapbox11"
uses: ./.github/workflows/ios-actions.yml
with:
env_name: ${{ inputs.env_name }}
ref: ${{ inputs.ref }}
NVMRC: ${{ inputs.NVMRC }}
MAP_IMPL: mapbox11
secrets:
MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }}
MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.MAPBOX_DOWNLOAD_TOKEN }}
ENV_MAPBOX_ACCESS_TOKEN: ${{ secrets.ENV_MAPBOX_ACCESS_TOKEN }}
ENV_MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.ENV_MAPBOX_DOWNLOAD_TOKEN }}
call_web_workflow:
name: "Web/Mapbox"
uses: ./.github/workflows/web-actions.yml
with:
env_name: ${{ inputs.env_name }}
ref: ${{ inputs.ref }}
NVMRC: ${{ inputs.NVMRC }}
secrets:
MAPBOX_ACCESS_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN }}
MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.MAPBOX_DOWNLOAD_TOKEN }}
ENV_MAPBOX_ACCESS_TOKEN: ${{ secrets.ENV_MAPBOX_ACCESS_TOKEN }}
ENV_MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.ENV_MAPBOX_DOWNLOAD_TOKEN }}