Skip to content

Commit

Permalink
Update action.yaml format and naming.
Browse files Browse the repository at this point in the history
Disables Chromium client side build telemetry.
  • Loading branch information
briantting committed Jan 14, 2025
1 parent 5440dc1 commit 1aba800
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/actions/build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
- name: Get depot tools
run: git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
shell: bash
- name: Add directory to PATH
- name: Add depot tools to PATH
run: echo "$GITHUB_WORKSPACE/depot_tools" >> $GITHUB_PATH
shell: bash
- name: Generate gclient file
Expand All @@ -22,15 +22,18 @@ runs:
echo "target_os=['android']" >> .gclient
gclient validate
shell: bash
- name: Gclient sync
- name: gclient sync
run: gclient sync -v --shallow --no-history -r ${{ github.sha }}
shell: bash
- name: gn gen
- name: Disable Chromium client side build telemetry
run: build_telemetry opt-out
shell: bash
- name: GN gen
run: |
cd src
cobalt/build/gn.py -p ${{ matrix.platform }} -C ${{ matrix.config }}
shell: bash
- name: Dump GN args
- name: List GN args
run: |
cd src
gn args --list --short --overrides-only out/${{ matrix.platform }}_${{ matrix.config }}
Expand All @@ -41,7 +44,7 @@ runs:
run: |
set -x
cd src
ninja -C out/${{ matrix.platform }}_${{ matrix.config }} $(echo "${TARGETS}" | tr -d '"')
time autoninja -C out/${{ matrix.platform }}_${{ matrix.config }} $(echo "${TARGETS}" | tr -d '"')
shell: bash
- name: Archive Android APKs
if: startsWith(matrix.platform, 'android') && matrix.config == 'qa'
Expand Down

0 comments on commit 1aba800

Please sign in to comment.