Skip to content

Build ANGLE

Build ANGLE #19

Workflow file for this run

name: Build ANGLE
on:
push:
branches:
- main
pull_request:
types: [ opened, reopened ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
include:
- os: android
arch: arm64
runs-on: ubuntu-24.04
- os: android
arch: arm
runs-on: ubuntu-24.04
- os: android
arch: x86
runs-on: ubuntu-24.04
- os: android
arch: x64
runs-on: ubuntu-24.04
- os: ios
arch: arm64
runs-on: macos-15
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Restore environment from cache
id: cached-environment-restore
uses: actions/cache/save@v4
with:
path: ./
key: ios_and_android-build-environment
- name: Setup environment if cache not found
if: steps.cached-environment-restore.outputs.cache-hit != 'true'
run: |
if [ ! -d "depot_tools" ] ; then
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
fi
echo "$PWD/depot_tools" >> $GITHUB_PATH
gclient config --spec 'solutions = [
{
"name": ".",
"url": "https://chromium.googlesource.com/angle/angle.git",
"deps_file": "DEPS",
"managed": False,
"custom_vars": {},
},
]
target_os = ["ios", "android"]'
gclient sync -Rf --no-history --with_branch_heads
- name: Save environment to cache
if: steps.cached-environment-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ./
key: ios_and_android-build-environment
- name: Fetch and verify ANGLE dependencies
run: |
gclient config --spec 'solutions = [
{
"name": ".",
"url": "https://chromium.googlesource.com/angle/angle.git",
"deps_file": "DEPS",
"managed": False,
"custom_vars": {},
},
]
target_os = ["${{ matrix.os }}"]'
gclient sync -Rf --no-history --with_branch_heads
- name: Build ANGLE
run: |
gn gen out/${{ matrix.os }}-${{ matrix.arch }}
autoninja -C out/${{ matrix.os }}-${{ matrix.arch }}
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: ANGLE-${{ matrix.os }}-${{ matrix.arch }}
path: out/${{ matrix.os }}-${{ matrix.arch }}