Skip to content

Commit 46fa96e

Browse files
committed
ci: split build workflow
1 parent 7307e95 commit 46fa96e

1 file changed

Lines changed: 33 additions & 16 deletions

File tree

.github/workflows/build.yml

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,56 @@ on:
44
workflow_call:
55

66
jobs:
7-
build:
7+
build-debug:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
path: src-debug
13+
- name: setup-depot-tools
14+
uses: newkdev/setup-depot-tools@v1.0.1
15+
- name: Sync gclient workspace
16+
run: |
17+
gclient config --unmanaged src-debug --name src-debug
18+
gclient sync --no-history
19+
- name: Build DevTools frontend (debug)
20+
run: |
21+
cd src-debug
22+
gn gen out/Default
23+
autoninja -C out/Default
24+
- uses: ./src-debug/.github/actions/upload-artifact
25+
with:
26+
name: dist-front_end
27+
path: src-debug/out/Default/gen/front_end
28+
build-release:
29+
# We are running front_end test against the release build
30+
# We have to lock Ubuntu image version, because of AppArmor issues in latest versions
31+
# https://pptr.dev/troubleshooting#issues-with-apparmor-on-ubuntu
32+
# https://github.com/puppeteer/puppeteer/issues/12818
33+
# https://issues.chromium.org/issues/373753919
834
runs-on: ubuntu-22.04
935
steps:
1036
- uses: actions/checkout@v3
1137
with:
12-
path: src
38+
path: src-release
1339
- name: setup-depot-tools
1440
uses: newkdev/setup-depot-tools@v1.0.1
1541
- name: Sync gclient workspace
1642
run: |
17-
gclient config --unmanaged src --name src
43+
gclient config --unmanaged src-release --name src-release
1844
gclient sync --no-history
19-
- name: Build DevTools frontend (debug)
20-
run: |
21-
cd src
22-
gn gen out/Default
23-
autoninja -C out/Default
24-
- uses: ./src/.github/actions/upload-artifact
25-
with:
26-
name: dist-front_end
27-
path: src/out/Default/gen/front_end
2845
- name: Build DevTools frontend (release)
2946
run: |
30-
cd src
47+
cd src-release
3148
mkdir -p out/Release
3249
echo 'is_official_build=true' > out/Release/args.gn
3350
gn gen out/Release
3451
autoninja -C out/Release
35-
- uses: ./src/.github/actions/upload-artifact
52+
- uses: ./src-release/.github/actions/upload-artifact
3653
with:
3754
name: dist-Release-front_end
38-
path: src/out/Release/gen/front_end
55+
path: src-release/out/Release/gen/front_end
3956
- name: Run front_end tests
4057
run: |
41-
cd src
58+
cd src-release
4259
npm run test -- front_end

0 commit comments

Comments
 (0)