Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromium update and Apple Silicon build #71

Merged
merged 34 commits into from
Feb 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
92dc48f
WIP enable Apple Silicon (arm64) build
jonmmease Feb 9, 2021
2c32b2f
WIP update chromium and depot tools versions
jonmmease Feb 9, 2021
d6df8fd
Pin setuptools version
jonmmease Feb 9, 2021
e0ca8df
Bump chromium-builder docker image tag to 0.9
jonmmease Feb 9, 2021
c2cd466
Delete unused platforms to save space on mac build jobs
jonmmease Feb 9, 2021
41dde9d
Remove DEPOT_TOOLS_UPDATE env on windows
jonmmease Feb 10, 2021
6171400
Display circleci mac application sizes
jonmmease Feb 10, 2021
b71c2b5
Delete more application files
jonmmease Feb 11, 2021
4941859
Can't delete app files
jonmmease Feb 11, 2021
bc2882f
Remove CREDITS.html file, autogenerate it
jonmmease Feb 11, 2021
dbaa857
Write license file during fetch on Mac
jonmmease Feb 11, 2021
54f2461
Build CREDITS.html on fetch
jonmmease Feb 11, 2021
44c799e
Remove CREDITS.html
jonmmease Feb 11, 2021
723ef86
ignore CREDITS.html
jonmmease Feb 11, 2021
1908d3a
Mac build fixes
jonmmease Feb 11, 2021
c5cd0b3
Merge branch 'chromium_update' of github.com:jonmmease/Kaleido into c…
jonmmease Feb 11, 2021
f2bbf74
CI fixes for generating CREDITS.html on fetch
jonmmease Feb 11, 2021
2a1ae69
fix mac artifacts
jonmmease Feb 12, 2021
b2a6d60
Back to mac "official" build to see if it reduces size
jonmmease Feb 12, 2021
6aed2a7
Downgrade chromium version
jonmmease Feb 12, 2021
812045d
Fix powershell environment variable
jonmmease Feb 12, 2021
f10b1a0
again
jonmmease Feb 12, 2021
16a903b
Install windows debugging tools on circleci with chocolatey
jonmmease Feb 13, 2021
5ac079e
Try disabling headless_use_embedded_resource on mac
jonmmease Feb 13, 2021
7ec5952
Back to current stable chromium
jonmmease Feb 14, 2021
2e763a1
Copy resources directory on mac
jonmmease Feb 14, 2021
ecb1d64
Try embedding mac resources again
jonmmease Feb 14, 2021
e1982cf
Copy only select mac dynamic libraries
jonmmease Feb 15, 2021
672b9fa
Use arm64 pip platform tag for Apple Silicon
jonmmease Feb 15, 2021
c528ad2
Don't embed resources in mac arm build
jonmmease Feb 18, 2021
00d3b3e
Don't embed resources on x86 mac build either
jonmmease Feb 19, 2021
81d6122
Embed resources, fix build_blink
jonmmease Feb 24, 2021
c9604e9
Update apple silicon platform tag to macosx-11-arm64
jonmmease Feb 24, 2021
5e23274
Add minor version to platform tag
jonmmease Feb 25, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
150 changes: 119 additions & 31 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,75 @@ commands:
- run:
name: Update PowerShell.Archive to fix slash direction
command: Install-Module Microsoft.PowerShell.Archive -MinimumVersion 1.2.3.0 -Repository PSGallery -Force
- run:
name: Install Debugging Tools for Windows SDK 10.0.19041.685
command: choco install windows-sdk-10-version-2004-windbg
- attach_workspace:
at: .\repos
- run: .\repos\win_scripts\build_kaleido.ps1 <<parameters.arch>>
- run: python .\repos\kaleido\py\setup.py bundle_hash_artifacts
- store_artifacts:
path: ./repos/kaleido/kaleido_artifacts_win_<<parameters.arch>>.zip

mac_build_blink:
parameters:
arch:
default: "x64"
type: string
steps:
- checkout
- run:
name: Delete simulators and unused platforms to save space
command: |
sudo rm -rf /Library/Developer/CoreSimulator
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
- attach_workspace:
at: ./repos
- run:
command: ./repos/mac_scripts/build_blink <<parameters.arch>>
no_output_timeout: 30m
- persist_to_workspace:
root: ./repos
paths:
- src
- depot_tools
- .gclient
- .gclient_entries
- kaleido/version
- CREDITS.html

mac_build:
parameters:
arch:
default: "x64"
type: string
steps:
- checkout
- run:
name: Delete simulators and unused platforms to save space
command: |
sudo rm -rf /Library/Developer/CoreSimulator
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform
sudo rm -rf /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
- attach_workspace:
at: ./repos
- run:
command: ./repos/mac_scripts/build_kaleido <<parameters.arch>>
no_output_timeout: 30m
- run: python3 ./repos/kaleido/py/setup.py bundle_hash_artifacts
- store_artifacts:
path: ./repos/kaleido/kaleido_artifacts_mac_<<parameters.arch>>.zip


jobs:
linux_fetch:
machine:
Expand All @@ -65,6 +127,11 @@ jobs:
root: ./repos
paths:
- src
- depot_tools
- .gclient
- .gclient_entries
- kaleido/version
- CREDITS.html

linux_build_x64:
machine:
Expand Down Expand Up @@ -160,41 +227,50 @@ jobs:
- .gclient
- .gclient_entries
- kaleido/version
- CREDITS.html

mac_build_blink:

mac_build_blink_x64:
macos: # indicate that we are using the macOS executor
xcode: 11.1.0 # indicate our selected version of Xcode
xcode: 12.2.0 # indicate our selected version of Xcode
resource_class: large
environment:
KALEIDO_ARCH: "x64"
steps:
- checkout
- attach_workspace:
at: ./repos
- run:
command: ./repos/mac_scripts/build_blink
no_output_timeout: 30m
- persist_to_workspace:
root: ./repos
paths:
- src
- depot_tools
- .gclient
- .gclient_entries

mac_build:
- mac_build_blink:
arch: "x64"

mac_build_blink_arm64:
macos: # indicate that we are using the macOS executor
xcode: 11.1.0 # indicate our selected version of Xcode
xcode: 12.2.0 # indicate our selected version of Xcode
resource_class: large
environment:
KALEIDO_ARCH: "arm64"
steps:
- checkout
- attach_workspace:
at: ./repos
- run:
command: ./repos/mac_scripts/build_kaleido
no_output_timeout: 30m
- run: python3 ./repos/kaleido/py/setup.py bundle_hash_artifacts
- store_artifacts:
path: ./repos/kaleido/kaleido_artifacts_mac.zip
- mac_build_blink:
arch: "arm64"


mac_build_x64:
macos: # indicate that we are using the macOS executor
xcode: 12.2.0 # indicate our selected version of Xcode
resource_class: large
environment:
KALEIDO_ARCH: "x64"
steps:
- mac_build:
arch: "x64"

mac_build_arm64:
macos: # indicate that we are using the macOS executor
xcode: 12.2.0 # indicate our selected version of Xcode
resource_class: large
environment:
KALEIDO_ARCH: "arm64"
steps:
- mac_build:
arch: "arm64"


windows_fetch:
executor:
Expand All @@ -213,6 +289,7 @@ jobs:
- .gclient
- .gclient_entries
- kaleido/version
- CREDITS.html

windows_build_x64:
executor:
Expand Down Expand Up @@ -250,16 +327,27 @@ workflows:
- windows_build_x86:
requires:
- windows_fetch
build-mac:

build-mac-x64:
jobs:
- mac_fetch
- mac_build_blink:
- mac_build_blink_x64:
requires:
- mac_fetch
- mac_build:
- mac_build_x64:
requires:
- mac_build_blink
- mac_build_blink_x64

build-mac-arm64:
jobs:
- mac_fetch
- mac_build_blink_arm64:
requires:
- mac_fetch
- mac_build_arm64:
requires:
- mac_build_blink_arm64

build-linux-x64:
jobs:
- linux_fetch
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
repos/CREDITS.html
repos/src
repos/depot_tools
*.DS_Store
Expand Down Expand Up @@ -27,3 +28,4 @@ repos/kaleido/py/dist/
*.egg-info/
repos/kaleido/py/scratch/
.idea/
repos/CREDITS.html
Loading