1
+ version : 2.1
2
+
3
+ parameters :
4
+ upload-to-s3 :
5
+ type : string
6
+ default : ' 1'
7
+
8
+ run-lint :
9
+ type : boolean
10
+ default : true
11
+
12
+ run-build-linux :
13
+ type : boolean
14
+ default : true
15
+
16
+ run-build-mac :
17
+ type : boolean
18
+ default : true
19
+
20
+ run-linux-x64-publish :
21
+ type : boolean
22
+ default : false
23
+
24
+ run-linux-ia32-publish :
25
+ type : boolean
26
+ default : false
27
+
28
+ run-linux-arm-publish :
29
+ type : boolean
30
+ default : false
31
+
32
+ run-linux-arm64-publish :
33
+ type : boolean
34
+ default : false
35
+
36
+ run-osx-publish :
37
+ type : boolean
38
+ default : false
39
+
40
+ run-mas-publish :
41
+ type : boolean
42
+ default : false
43
+
1
44
# The config expects the following environment variables to be set:
2
45
# - "SLACK_WEBHOOK" Slack hook URL to send notifications.
3
46
#
@@ -674,7 +717,7 @@ steps-lint: &steps-lint
674
717
chromium_revision="$(grep -A1 chromium_version src/electron/DEPS | tr -d '\n' | cut -d\' -f4)"
675
718
gn_version="$(curl -sL "https://chromium.googlesource.com/chromium/src/+/${chromium_revision}/DEPS?format=TEXT" | base64 -d | grep gn_version | head -n1 | cut -d\' -f4)"
676
719
677
- cipd ensure -ensure-file - -root . <<-CIPD
720
+ cipd ensure -ensure-file - -root . \ <<-CIPD
678
721
\$ServiceURL https://chrome-infra-packages.appspot.com/
679
722
@Subdir src/buildtools/linux64
680
723
gn/gn/linux-amd64 $gn_version
@@ -1028,7 +1071,6 @@ chromium-upgrade-branches: &chromium-upgrade-branches
1028
1071
/chromium\-upgrade\/[0-9]+/
1029
1072
1030
1073
# List of all jobs.
1031
- version : 2
1032
1074
jobs :
1033
1075
# Layer 0: Lint. Standalone.
1034
1076
lint :
@@ -1148,6 +1190,8 @@ jobs:
1148
1190
<< : *env-linux-2xlarge-release
1149
1191
GCLIENT_EXTRA_ARGS : ' --custom-var=checkout_boto=True --custom-var=checkout_requests=True'
1150
1192
<< : *env-release-build
1193
+ << : *env-enable-sccache
1194
+ UPLOAD_TO_S3 : << pipeline.parameters.upload-to-s3 >>
1151
1195
<< : *steps-electron-build-for-publish
1152
1196
1153
1197
linux-ia32-debug :
@@ -1198,6 +1242,8 @@ jobs:
1198
1242
GCLIENT_EXTRA_ARGS : ' --custom-var=checkout_boto=True --custom-var=checkout_requests=True'
1199
1243
<< : *env-ia32
1200
1244
<< : *env-release-build
1245
+ << : *env-enable-sccache
1246
+ UPLOAD_TO_S3 : << pipeline.parameters.upload-to-s3 >>
1201
1247
<< : *steps-electron-build-for-publish
1202
1248
1203
1249
linux-arm-debug :
@@ -1248,7 +1294,9 @@ jobs:
1248
1294
<< : *env-linux-2xlarge-release
1249
1295
<< : *env-arm
1250
1296
<< : *env-release-build
1297
+ << : *env-enable-sccache
1251
1298
GCLIENT_EXTRA_ARGS : ' --custom-var=checkout_arm=True --custom-var=checkout_boto=True --custom-var=checkout_requests=True'
1299
+ UPLOAD_TO_S3 : << pipeline.parameters.upload-to-s3 >>
1252
1300
<< : *steps-electron-build-for-publish
1253
1301
1254
1302
linux-arm64-debug :
@@ -1315,7 +1363,9 @@ jobs:
1315
1363
<< : *env-linux-2xlarge-release
1316
1364
<< : *env-arm64
1317
1365
<< : *env-release-build
1366
+ << : *env-enable-sccache
1318
1367
GCLIENT_EXTRA_ARGS : ' --custom-var=checkout_arm64=True --custom-var=checkout_boto=True --custom-var=checkout_requests=True'
1368
+ UPLOAD_TO_S3 : << pipeline.parameters.upload-to-s3 >>
1319
1369
<< : *steps-electron-build-for-publish
1320
1370
1321
1371
osx-testing :
@@ -1373,7 +1423,9 @@ jobs:
1373
1423
environment :
1374
1424
<< : *env-mac-large-release
1375
1425
<< : *env-release-build
1426
+ << : *env-enable-sccache
1376
1427
GCLIENT_EXTRA_ARGS : ' --custom-var=checkout_boto=True --custom-var=checkout_requests=True'
1428
+ UPLOAD_TO_S3 : << pipeline.parameters.upload-to-s3 >>
1377
1429
<< : *steps-electron-build-for-publish
1378
1430
1379
1431
mas-testing :
@@ -1437,7 +1489,9 @@ jobs:
1437
1489
<< : *env-mac-large-release
1438
1490
<< : *env-mas
1439
1491
<< : *env-release-build
1492
+ << : *env-enable-sccache
1440
1493
GCLIENT_EXTRA_ARGS : ' --custom-var=checkout_boto=True --custom-var=checkout_requests=True'
1494
+ UPLOAD_TO_S3 : << pipeline.parameters.upload-to-s3 >>
1441
1495
<< : *steps-electron-build-for-publish
1442
1496
1443
1497
# Layer 3: Tests.
@@ -1693,11 +1747,56 @@ jobs:
1693
1747
1694
1748
workflows :
1695
1749
version : 2
1750
+
1751
+ # The publish workflows below each contain one job so that they are
1752
+ # compatible with how sudowoodo works today. If these workflows are
1753
+ # changed to have multiple jobs, then scripts/release/ci-release-build.js
1754
+ # will need to be updated and there will most likely need to be changes to
1755
+ # sudowoodo
1756
+
1757
+ publish-x64-linux :
1758
+ when : << pipeline.parameters.run-linux-x64-publish >>
1759
+ jobs :
1760
+ - linux-x64-publish :
1761
+ context : release-env
1762
+
1763
+ publish-ia32-linux :
1764
+ when : << pipeline.parameters.run-linux-ia32-publish >>
1765
+ jobs :
1766
+ - linux-ia32-publish :
1767
+ context : release-env
1768
+
1769
+ publish-arm-linux :
1770
+ when : << pipeline.parameters.run-linux-arm-publish >>
1771
+ jobs :
1772
+ - linux-arm-publish :
1773
+ context : release-env
1774
+
1775
+ publish-arm64-linux :
1776
+ when : << pipeline.parameters.run-linux-arm64-publish >>
1777
+ jobs :
1778
+ - linux-arm64-publish :
1779
+ context : release-env
1780
+
1781
+ publish-osx :
1782
+ when : << pipeline.parameters.run-osx-publish >>
1783
+ jobs :
1784
+ - osx-publish :
1785
+ context : release-env
1786
+
1787
+ publish-mas :
1788
+ when : << pipeline.parameters.run-mas-publish >>
1789
+ jobs :
1790
+ - mas-publish :
1791
+ context : release-env
1792
+
1696
1793
lint :
1794
+ when : << pipeline.parameters.run-lint >>
1697
1795
jobs :
1698
1796
- lint
1699
1797
1700
1798
build-linux :
1799
+ when : << pipeline.parameters.run-build-linux >>
1701
1800
jobs :
1702
1801
- linux-checkout-fast
1703
1802
- linux-checkout-and-save-cache
@@ -1764,6 +1863,7 @@ workflows:
1764
1863
- linux-checkout-fast
1765
1864
1766
1865
build-mac :
1866
+ when : << pipeline.parameters.run-build-mac >>
1767
1867
jobs :
1768
1868
- mac-checkout-fast
1769
1869
- mac-checkout-and-save-cache
@@ -1818,11 +1918,11 @@ workflows:
1818
1918
- master
1819
1919
- *chromium-upgrade-branches
1820
1920
jobs :
1821
- - linux-checkout
1921
+ - linux-checkout-fast
1822
1922
1823
1923
- linux-x64-release :
1824
1924
requires :
1825
- - linux-checkout
1925
+ - linux-checkout-fast
1826
1926
- linux-x64-release-tests :
1827
1927
requires :
1828
1928
- linux-x64-release
@@ -1834,7 +1934,7 @@ workflows:
1834
1934
- linux-x64-release
1835
1935
- linux-x64-chromedriver :
1836
1936
requires :
1837
- - linux-checkout
1937
+ - linux-checkout-fast
1838
1938
- linux-x64-release-summary :
1839
1939
requires :
1840
1940
- linux-x64-release
@@ -1844,7 +1944,7 @@ workflows:
1844
1944
1845
1945
- linux-ia32-release :
1846
1946
requires :
1847
- - linux-checkout
1947
+ - linux-checkout-fast
1848
1948
- linux-ia32-release-tests :
1849
1949
requires :
1850
1950
- linux-ia32-release
@@ -1856,7 +1956,7 @@ workflows:
1856
1956
- linux-ia32-release
1857
1957
- linux-ia32-chromedriver :
1858
1958
requires :
1859
- - linux-checkout
1959
+ - linux-checkout-fast
1860
1960
- linux-ia32-release-summary :
1861
1961
requires :
1862
1962
- linux-ia32-release
@@ -1866,10 +1966,10 @@ workflows:
1866
1966
1867
1967
- linux-arm-release :
1868
1968
requires :
1869
- - linux-checkout
1969
+ - linux-checkout-fast
1870
1970
- linux-arm-chromedriver :
1871
1971
requires :
1872
- - linux-checkout
1972
+ - linux-checkout-fast
1873
1973
- linux-arm-release-summary :
1874
1974
requires :
1875
1975
- linux-arm-release
@@ -1878,10 +1978,10 @@ workflows:
1878
1978
1879
1979
- linux-arm64-release :
1880
1980
requires :
1881
- - linux-checkout
1981
+ - linux-checkout-fast
1882
1982
- linux-arm64-chromedriver :
1883
1983
requires :
1884
- - linux-checkout
1984
+ - linux-checkout-fast
1885
1985
- linux-arm64-release-summary :
1886
1986
requires :
1887
1987
- linux-arm64-release
@@ -1897,11 +1997,11 @@ workflows:
1897
1997
- master
1898
1998
- *chromium-upgrade-branches
1899
1999
jobs :
1900
- - mac-checkout
2000
+ - mac-checkout-fast
1901
2001
1902
2002
- osx-release :
1903
2003
requires :
1904
- - mac-checkout
2004
+ - mac-checkout-fast
1905
2005
- osx-release-tests :
1906
2006
requires :
1907
2007
- osx-release
@@ -1913,7 +2013,7 @@ workflows:
1913
2013
- osx-release
1914
2014
- osx-chromedriver :
1915
2015
requires :
1916
- - mac-checkout
2016
+ - mac-checkout-fast
1917
2017
- osx-release-summary :
1918
2018
requires :
1919
2019
- osx-release
@@ -1923,7 +2023,7 @@ workflows:
1923
2023
1924
2024
- mas-release :
1925
2025
requires :
1926
- - mac-checkout
2026
+ - mac-checkout-fast
1927
2027
- mas-release-tests :
1928
2028
requires :
1929
2029
- mas-release
@@ -1935,7 +2035,7 @@ workflows:
1935
2035
- mas-release
1936
2036
- mas-chromedriver :
1937
2037
requires :
1938
- - mac-checkout
2038
+ - mac-checkout-fast
1939
2039
- mas-release-summary :
1940
2040
requires :
1941
2041
- mas-release
0 commit comments