Repository navigation
65 lines (61 loc) · 2.23 KB
/
Copy pathservo_example.yaml
File metadata and controls
65 lines (61 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Copyright © SixtyFPS GmbH <info@slint.dev>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
name: Servo example
on:
workflow_dispatch:
workflow_call:
jobs:
matrix_build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: servo ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
# required for servo
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install rust
uses: ./.github/actions/setup-rust
- name: Install dependencies
uses: ./.github/actions/install-linux-dependencies
- name: Install skia dependencies
uses: ./.github/actions/install-skia-dependencies
- name: Build
working-directory: examples/servo
run: cargo build --release
android_build:
name: servo android
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: false
CARGO_PROFILE_DEV_DEBUG: 0
# cargo-apk does not honor the repository's relative `build.target-dir`
# (.cargo/config.toml), so point it at an absolute path that matches
# where cargo actually writes the artifacts.
CARGO_TARGET_DIR: ${{ github.workspace }}/target
steps:
- uses: actions/checkout@v7
# required for servo
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install rust
uses: ./.github/actions/setup-rust
with:
target: aarch64-linux-android
- name: Install dependencies
uses: ./.github/actions/install-linux-dependencies
- name: Install skia dependencies
uses: ./.github/actions/install-skia-dependencies
# required for android
- name: Install API level
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "platforms;android-30"
- name: Install cargo-apk
run: cargo install cargo-apk
- name: Build
working-directory: examples/servo
run: |
export BINDGEN_EXTRA_CLANG_ARGS="--target=aarch64-linux-android30 --sysroot=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/sysroot"
cargo apk build --target aarch64-linux-android --lib