Skip to content

Commit 6364a88

Browse files
koumiGooglecopybara-github
authored andcommitted
feat: refactor github build steps
PiperOrigin-RevId: 845335954
1 parent 92edd81 commit 6364a88

File tree

2 files changed

+3
-33
lines changed

2 files changed

+3
-33
lines changed

.github/actions/prepare-deps/action.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -59,29 +59,3 @@ runs:
5959
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
6060
echo "$(pwd)/depot_tools" >> $GITHUB_PATH
6161
shell: bash
62-
63-
- name: 📡 Fetch and build WebRTC
64-
if: ${{ steps.cache-webrtc.outputs.cache-hit != 'true' }}
65-
run: |
66-
mkdir webrtc-checkout
67-
pushd webrtc-checkout
68-
fetch --nohooks webrtc
69-
pushd src
70-
git checkout b00c469cad3f8c926fcf81ded90b90b6e1e62b9c
71-
popd
72-
sed -i -e "s|'src/resources'],|'src/resources'],'condition':'rtc_include_tests==true',|" src/DEPS
73-
gclient sync
74-
pushd src
75-
gn gen out/Default --args='is_debug=false use_custom_libcxx=false rtc_include_tests=false rtc_build_examples=false dcheck_always_on=true rtc_use_x11=false use_rtti=true'
76-
ninja -C out/Default
77-
popd
78-
mv src webrtc
79-
pushd webrtc
80-
# Delete all unnecessary files, maintaining directory structure. Required to conserve Github
81-
# runner disk space.
82-
find . -type f ! -name "libwebrtc.a" ! -name "*.h" ! -path "*/boringssl/src/*" -delete
83-
# Housekeeping: delete empty directories.
84-
find . -type d -empty -delete
85-
popd
86-
popd
87-
shell: bash

.github/workflows/main.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,9 @@ jobs:
3333
- name: 📦 Prepare dependencies
3434
uses: ./.github/actions/prepare-deps
3535

36-
- name: 🚧 Build
36+
- name: 🕸️ Build Web
3737
run: |
38-
sed -i -e 's|webrtc_path = ".*"|webrtc_path = "${{ github.workspace }}/webrtc-checkout/"|g' WORKSPACE
39-
# Don't `build ...`, as includes irrelevant targets in `webrtc-checkout`.
40-
bazel-7.4.1 build cpp/...
4138
bazel-7.4.1 build web/...
4239
43-
- name: 🔍 Test
44-
run: |
45-
bazel-7.4.1 test cpp/...
40+
- name: 🚧 Build C++
41+
uses: ./cpp/build.sh

0 commit comments

Comments
 (0)