forked from ChromeDevTools/devtools-frontend
-
Notifications
You must be signed in to change notification settings - Fork 23
59 lines (57 loc) · 1.86 KB
/
build.yml
File metadata and controls
59 lines (57 loc) · 1.86 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
name: Build and test DevTools frontend
on:
workflow_call:
jobs:
build-debug:
# We are running front_end test against the debug build
# We have to lock Ubuntu image version, because of AppArmor issues in latest versions
# https://pptr.dev/troubleshooting#issues-with-apparmor-on-ubuntu
# https://github.com/puppeteer/puppeteer/issues/12818
# https://issues.chromium.org/issues/373753919
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
path: src-debug
- name: Set up depot-tools
uses: newkdev/setup-depot-tools@v1.0.1
- name: Sync gclient workspace
run: |
gclient config --unmanaged src-debug --name src-debug
gclient sync --no-history
- name: Build DevTools frontend (debug)
run: |
cd src-debug
gn gen out/Default
autoninja -C out/Default
- uses: ./src-debug/.github/actions/upload-artifact
with:
name: dist-front_end
path: src-debug/out/Default/gen/front_end
- name: Run front_end tests
run: |
cd src-debug
npm run test -- front_end
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: src-release
- name: Set up depot-tools
uses: newkdev/setup-depot-tools@v1.0.1
- name: Sync gclient workspace
run: |
gclient config --unmanaged src-release --name src-release
gclient sync --no-history
- name: Build DevTools frontend (release)
run: |
cd src-release
mkdir -p out/Release
echo 'is_official_build=true' > out/Release/args.gn
gn gen out/Release
autoninja -C out/Release
- uses: ./src-release/.github/actions/upload-artifact
with:
name: dist-Release-front_end
path: src-release/out/Release/gen/front_end