Skip to content

Build ANGLE

Build ANGLE #17

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-latest
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache third_party/llvm
uses: actions/cache@v4
with:
path: third_party/llvm
key: third_party-llvm
- name: Cache third_party/VK-GL-CTS
uses: actions/cache@v4
with:
path: third_party/VK-GL-CTS
key: third_party-VK-GL-CTS
- name: Cache third_party/SwiftShader
uses: actions/cache@v4
with:
path: third_party/SwiftShader
key: third_party-SwiftShader
- name: Cache third_party/dawn
uses: actions/cache@v4
with:
path: third_party/dawn
key: third_party-dawn
- name: Cache depot_tools
uses: actions/cache@v4
with:
path: depot_tools
key: depot-tools
# This should only be rarely ran so its here so the cache priority still is somewhat biggest to smallest
- name: Install depot_tools
run: |
if [ ! -d "depot_tools" ] ; then
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
fi
echo "$PWD/depot_tools" >> $GITHUB_PATH
- name: Cache tools
uses: actions/cache@v4
with:
path: tools
key: tools
- name: Cache build
uses: actions/cache@v4
with:
path: build
key: build
- name: Fetch ANGLE and 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 }}