File tree Expand file tree Collapse file tree 4 files changed +33
-3
lines changed Expand file tree Collapse file tree 4 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,11 @@ jobs:
121
121
./mach --no-interactive bootstrap --application-choice browser
122
122
cd ..
123
123
124
+ - name : Insert API Keys
125
+ run : |
126
+ mkdir -p ~/.zen-keys
127
+ echo "${{ secrets.ZEN_SAFEBROWSING_API_KEY }}" > ~/.zen-keys/safebrowsing.dat
128
+
124
129
- name : Build
125
130
env :
126
131
SURFER_COMPAT : ${{ matrix.arch }}
@@ -141,6 +146,10 @@ jobs:
141
146
export SURFER_PLATFORM="linux"
142
147
export ZEN_RELEASE=1
143
148
npm run package
149
+
150
+ - name : Remove API Keys
151
+ run : |
152
+ rm -rf ~/.zen-keys
144
153
145
154
- name : Rename artifacts
146
155
run : |
Original file line number Diff line number Diff line change @@ -132,6 +132,11 @@ jobs:
132
132
- name : Build language packs
133
133
run : sh scripts/download-language-packs.sh
134
134
135
+ - name : Insert API Keys
136
+ run : |
137
+ mkdir -p ~/.zen-keys
138
+ echo "${{ secrets.ZEN_SAFEBROWSING_API_KEY }}" > ~/.zen-keys/safebrowsing.dat
139
+
135
140
- name : Build Zen
136
141
env :
137
142
SURFER_COMPAT : ${{ matrix.arch }}
@@ -152,6 +157,10 @@ jobs:
152
157
export ZEN_RELEASE=1
153
158
npm run package
154
159
160
+ - name : Remove API Keys
161
+ run : |
162
+ rm -rf ~/.zen-keys
163
+
155
164
- name : Rename artifacts
156
165
run : |
157
166
echo "Tarballing DMG"
Original file line number Diff line number Diff line change @@ -226,6 +226,11 @@ jobs:
226
226
chmod +x ~/artifact/en-US.log
227
227
chmod +x ~/artifact/merged.profdata
228
228
229
+ - name : Insert API Keys
230
+ run : |
231
+ mkdir -p ~/.zen-keys
232
+ echo "${{ secrets.ZEN_SAFEBROWSING_API_KEY }}" > ~/.zen-keys/safebrowsing.dat
233
+
229
234
- name : Build
230
235
if : ${{ !(inputs.generate-gpo && matrix.arch == 'aarch64') }}
231
236
env :
@@ -259,6 +264,11 @@ jobs:
259
264
ls ./dist
260
265
ls .
261
266
267
+
268
+ - name : Remove API Keys
269
+ run : |
270
+ rm -rf ~/.zen-keys
271
+
262
272
- name : Move package for PGO upload
263
273
if : ${{ inputs.generate-gpo && matrix.arch == 'x86_64' }}
264
274
run : |
Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ if ! test "$SCCACHE_GHA_ENABLED" = "false"; then
32
32
fi
33
33
fi
34
34
35
+ # add safe browsing key if it exists on a file
36
+ if test -f "$HOME/.zen-keys/safebrowsing.dat"; then
37
+ ac_add_options --with-google-safebrowsing-api-keyfile="$HOME/.zen-keys/safebrowsing.dat"
38
+ fi
39
+
35
40
if test "$ZEN_RELEASE"; then
36
41
37
42
# TODO: Make this successful in builds
96
101
97
102
ac_add_options --enable-unverified-updates
98
103
99
- ac_add_options --enable-raw
100
- ac_add_options --enable-webrtc
101
104
ac_add_options --enable-jxl
102
- ac_add_options --enable-av1
103
105
104
106
ac_add_options --with-unsigned-addon-scopes=app,system
105
107
You can’t perform that action at this time.
0 commit comments