|
4 | 4 | workflow_call: |
5 | 5 |
|
6 | 6 | 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 |
8 | 34 | runs-on: ubuntu-22.04 |
9 | 35 | steps: |
10 | 36 | - uses: actions/checkout@v3 |
11 | 37 | with: |
12 | | - path: src |
| 38 | + path: src-release |
13 | 39 | - name: setup-depot-tools |
14 | 40 | uses: newkdev/setup-depot-tools@v1.0.1 |
15 | 41 | - name: Sync gclient workspace |
16 | 42 | run: | |
17 | | - gclient config --unmanaged src --name src |
| 43 | + gclient config --unmanaged src-release --name src-release |
18 | 44 | 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 |
28 | 45 | - name: Build DevTools frontend (release) |
29 | 46 | run: | |
30 | | - cd src |
| 47 | + cd src-release |
31 | 48 | mkdir -p out/Release |
32 | 49 | echo 'is_official_build=true' > out/Release/args.gn |
33 | 50 | gn gen out/Release |
34 | 51 | autoninja -C out/Release |
35 | | - - uses: ./src/.github/actions/upload-artifact |
| 52 | + - uses: ./src-release/.github/actions/upload-artifact |
36 | 53 | with: |
37 | 54 | name: dist-Release-front_end |
38 | | - path: src/out/Release/gen/front_end |
| 55 | + path: src-release/out/Release/gen/front_end |
39 | 56 | - name: Run front_end tests |
40 | 57 | run: | |
41 | | - cd src |
| 58 | + cd src-release |
42 | 59 | npm run test -- front_end |
0 commit comments