|
4 | 4 | workflow_call: |
5 | 5 |
|
6 | 6 | jobs: |
7 | | - build: |
| 7 | + build-debug: |
| 8 | + # We are running front_end test against the debug build |
| 9 | + # We have to lock Ubuntu image version, because of AppArmor issues in latest versions |
| 10 | + # https://pptr.dev/troubleshooting#issues-with-apparmor-on-ubuntu |
| 11 | + # https://github.com/puppeteer/puppeteer/issues/12818 |
| 12 | + # https://issues.chromium.org/issues/373753919 |
8 | 13 | runs-on: ubuntu-22.04 |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@v3 |
| 16 | + with: |
| 17 | + path: src-debug |
| 18 | + - name: setup-depot-tools |
| 19 | + uses: newkdev/setup-depot-tools@v1.0.1 |
| 20 | + - name: Sync gclient workspace |
| 21 | + run: | |
| 22 | + gclient config --unmanaged src-debug --name src-debug |
| 23 | + gclient sync --no-history |
| 24 | + - name: Build DevTools frontend (debug) |
| 25 | + run: | |
| 26 | + cd src-debug |
| 27 | + gn gen out/Default |
| 28 | + autoninja -C out/Default |
| 29 | + - uses: ./src-debug/.github/actions/upload-artifact |
| 30 | + with: |
| 31 | + name: dist-front_end |
| 32 | + path: src-debug/out/Default/gen/front_end |
| 33 | + - name: Run front_end tests |
| 34 | + run: | |
| 35 | + cd src-debug |
| 36 | + npm run test -- front_end |
| 37 | + build-release: |
| 38 | + runs-on: ubuntu-latest |
9 | 39 | steps: |
10 | 40 | - uses: actions/checkout@v3 |
11 | 41 | with: |
12 | | - path: src |
| 42 | + path: src-release |
13 | 43 | - name: setup-depot-tools |
14 | 44 | uses: newkdev/setup-depot-tools@v1.0.1 |
15 | 45 | - name: Sync gclient workspace |
16 | 46 | run: | |
17 | | - gclient config --unmanaged src --name src |
| 47 | + gclient config --unmanaged src-release --name src-release |
18 | 48 | 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 | 49 | - name: Build DevTools frontend (release) |
29 | 50 | run: | |
30 | | - cd src |
| 51 | + cd src-release |
31 | 52 | mkdir -p out/Release |
32 | 53 | echo 'is_official_build=true' > out/Release/args.gn |
33 | 54 | gn gen out/Release |
34 | 55 | autoninja -C out/Release |
35 | | - - uses: ./src/.github/actions/upload-artifact |
| 56 | + - uses: ./src-release/.github/actions/upload-artifact |
36 | 57 | with: |
37 | 58 | name: dist-Release-front_end |
38 | | - path: src/out/Release/gen/front_end |
39 | | - - name: Run front_end tests |
40 | | - run: | |
41 | | - cd src |
42 | | - npm run test -- front_end |
| 59 | + path: src-release/out/Release/gen/front_end |
0 commit comments