@@ -15,16 +15,31 @@ runs:
1515 steps :
1616 - name : Clean out dir from previous runner
1717 run : |
18- rm -rf cobalt/ src/out
18+ rm -rf src/out
1919 shell : bash
2020 - name : GN gen
2121 run : |
22- cd cobalt/src
23- cobalt/build/gn.py -p ${{ matrix.platform }} -C ${{ matrix.config }}
22+ cd src
23+ if [[ "${{ matrix.platform }}" == *"mac"* ]]; then
24+ cobalt/build/gn.py -p ${{ matrix.platform }} -C ${{ matrix.config }} --no-rbe --cc_wrapper=sccache
25+ else
26+ cobalt/build/gn.py -p ${{ matrix.platform }} -C ${{ matrix.config }}
27+ fi
28+ shell : bash
29+ - name : Set sccache debug env variable
30+ run : |
31+ echo "SCCACHE_ERROR_LOG=$HOME/tmp/sccache.log" >> $GITHUB_ENV
32+ echo "SCCACHE_LOG=debug" >> $GITHUB_ENV
2433 shell : bash
25- - name : List GN args
34+ - name : List GN args and sccache
2635 run : |
27- cd cobalt/src
36+ cd src
37+ echo "$SCCACHE_GCS_KEY_PATH"
38+ echo "$SCCACHE"
39+ echo "$SCCACHE_GCS_BUCKET"
40+ echo "$SCCACHE_GCS_RW_MODE"
41+ echo "$SCCACHE_IDLE_TIMEOUT"
42+ sccache --show-stats
2843 gn args --list --short --overrides-only out/${{ matrix.platform }}_${{ matrix.config }}
2944 shell : bash
3045 - name : Get list of changed files
3449 CHANGED_FILES_LIST : changed_files.txt
3550 run : |
3651 set -x
37- cd cobalt/ src
52+ cd src
3853 # GitHub's actions/checkout action, by default, checks out the merge commit when
3954 # a pull request event triggers a workflow. This merge commit represents the state
4055 # of the code as if the pull request had been merged into the base branch.
5570 DYN_TEST_TARGETS_JSON_FILE : out/${{ matrix.platform }}_${{ matrix.config }}/dyn_targets.json
5671 run : |
5772 set -x
58- cd cobalt/ src
73+ cd src
5974
6075 if [[ ! -f "${STATIC_TEST_TARGETS_JSON_FILE}" ]]; then
6176 echo "Static test targets file not found at ${STATIC_TEST_TARGETS_JSON_FILE}. Skipping step."
@@ -95,13 +110,13 @@ runs:
95110 uses : actions/upload-artifact@v4
96111 with :
97112 name : ${{ matrix.platform }}_test_targets_json
98- path : cobalt/ src/out/${{ matrix.platform }}_${{ matrix.config }}/test_targets.json
113+ path : src/out/${{ matrix.platform }}_${{ matrix.config }}/test_targets.json
99114 - name : Ninja build test targets
100115 if : ${{ matrix.config == 'devel' && fromJSON(steps.calculate-test-targets.outputs.test_targets_count || 0) > 0 }}
101116 id : build-test-targets
102117 run : |
103118 set -ex
104- cd cobalt/ src
119+ cd src
105120 test_targets=$(echo '${{ steps.calculate-test-targets.outputs.test_targets_json }}' | jq -cr 'join(" ")')
106121 time autoninja -C out/${{ matrix.platform }}_${{ matrix.config }} ${test_targets}
107122 shell : bash
@@ -110,22 +125,24 @@ runs:
110125 TARGETS_JSON : ${{ inputs.targets }}
111126 run : |
112127 set -ex
113- cd cobalt/ src
128+ cd src
114129 TARGETS=$(echo "${TARGETS_JSON}" | jq -cr '. | join(" ")')
115- time autoninja -C out/${{ matrix.platform }}_${{ matrix.config }} ${TARGETS}
130+ python cobalt/build/gn.py out/tvos-arm64_devel -p tvos-arm64-simulator -c devel --no-rbe
131+ ninja -C out/tvos-arm64_devel starboard/nplb:nplb
132+ # time autoninja -C out/${{ matrix.platform }}_${{ matrix.config }} ${TARGETS}
116133 shell : bash
117134 - name : Archive Android APKs
118135 if : startsWith(matrix.platform, 'android') && matrix.config == 'qa'
119136 uses : actions/upload-artifact@v4
120137 with :
121138 name : ${{ matrix.platform }} APKs
122139 path : |
123- cobalt/ src/out/${{ matrix.platform }}_qa/apks/*.apk
124- cobalt/ src/out/${{ matrix.platform }}_qa/*_apk/*.apk
125- cobalt/ src/out/${{ matrix.platform }}_qa/gen/build_info.json
140+ src/out/${{ matrix.platform }}_qa/apks/*.apk
141+ src/out/${{ matrix.platform }}_qa/*_apk/*.apk
142+ src/out/${{ matrix.platform }}_qa/gen/build_info.json
126143 - name : Upload Test Artifacts
127144 if : steps.build-test-targets.outcome == 'success'
128- uses : ./cobalt/ src/.github/actions/upload_test_artifacts
145+ uses : ./src/.github/actions/upload_test_artifacts
129146 with :
130147 test_artifacts_key : ${{ inputs.test_artifacts_key }}
131148 upload_on_host_test_artifacts : ${{ inputs.upload_on_host_test_artifacts == 'true' || inputs.upload_web_test_artifacts == 'true' }}
0 commit comments