Skip to content

Update build.yml

Update build.yml #8

Workflow file for this run

name: Build Chromium Blink for iOS
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up depot_tools
run: |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
echo "$(pwd)/depot_tools" >> $GITHUB_PATH
- name: Fetch Chromium source
run: |
mkdir chromium && cd chromium
fetch --nohooks ios
gclient sync --nohooks --with_branch_heads --with_tags
- name: Install dependencies
run: |
cd chromium/src
./build/install-build-deps.sh
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
- name: Run GN to configure the build
run: |
cd chromium/src
gn gen out/ios --args='target_os="ios" target_cpu="arm64" is_component_build=false is_debug=false'
- name: Build Blink
run: |
cd chromium/src
ninja -C out/ios blink_tests
- name: Upload Blink Build Artifacts
uses: actions/upload-artifact@v4
with:
name: blink-build-ios
path: chromium/src/out/ios