Skip to content

Commit 977685c

Browse files
authored
Build libwebrtc (#205)
properly define matrix
1 parent e78f03e commit 977685c

1 file changed

Lines changed: 11 additions & 29 deletions

File tree

.github/workflows/build-libwebrtc.yml

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -26,35 +26,17 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
include:
30-
# ubuntu-24.04 is the latest Ubuntu version supported by ./build/install-build-deps.sh.
29+
build:
3130
- os: ubuntu-24.04
3231
artifact: libwebrtc-linux-x64
33-
gn_args: >-
34-
is_debug=false
35-
is_component_build=false
36-
is_clang=false
37-
rtc_include_tests=false
38-
rtc_use_h264=true
39-
use_rtti=true
40-
use_custom_libcxx=false
41-
treat_warnings_as_errors=false
42-
use_ozone=true
32+
gn_args: is_debug=false is_component_build=false is_clang=false rtc_include_tests=false rtc_use_h264=true use_rtti=true use_custom_libcxx=false treat_warnings_as_errors=false use_ozone=true
4333

4434
- os: macos-15
4535
artifact: libwebrtc-macos-arm64
46-
gn_args: >-
47-
is_debug=false
48-
is_component_build=false
49-
is_clang=true
50-
rtc_include_tests=false
51-
rtc_use_h264=true
52-
use_rtti=true
53-
use_custom_libcxx=false
54-
55-
name: Build (${{ matrix.os }})
56-
runs-on: ${{ matrix.os }}
57-
if: ${{ inputs.os == 'all' || inputs.os == matrix.os }}
36+
gn_args: is_debug=false is_component_build=false is_clang=true rtc_include_tests=false rtc_use_h264=true use_rtti=true use_custom_libcxx=false
37+
38+
name: Build (${{ matrix.build.os }})
39+
runs-on: ${{ matrix.build.os }}
5840

5941
steps:
6042
- name: Install depot_tools
@@ -77,13 +59,13 @@ jobs:
7759
gclient sync
7860
7961
- name: Install Linux build dependencies
80-
if: runner.os == 'Linux'
62+
if: ${{ runner.os == 'Linux' }}
8163
working-directory: ${{ runner.temp }}/webrtc-checkout/src
8264
run: sudo ./build/install-build-deps.sh --no-prompt
8365

8466
- name: Generate build files
8567
working-directory: ${{ runner.temp }}/webrtc-checkout/src
86-
run: gn gen out/${{ env.WEBRTC_REVISION }} --args='${{ matrix.gn_args }}'
68+
run: gn gen out/${{ env.WEBRTC_REVISION }} --args='${{ matrix.build.gn_args }}'
8769

8870
- name: Build
8971
working-directory: ${{ runner.temp }}/webrtc-checkout/src
@@ -104,14 +86,14 @@ jobs:
10486
| tar czf "${ARTIFACT_DIR}/include.tar.gz" -T -
10587
10688
# Final tarball.
107-
tar czf "${{ runner.temp }}/${{ matrix.artifact }}.tar.gz" \
89+
tar czf "${{ runner.temp }}/${{ matrix.build.artifact }}.tar.gz" \
10890
-C "${{ runner.temp }}" artifact/
10991
11092
- name: Upload artifact
11193
uses: actions/upload-artifact@v4
11294
with:
113-
name: ${{ matrix.artifact }}
114-
path: ${{ runner.temp }}/${{ matrix.artifact }}.tar.gz
95+
name: ${{ matrix.build.artifact }}
96+
path: ${{ runner.temp }}/${{ matrix.build.artifact }}.tar.gz
11597
retention-days: 7
11698

11799
release:

0 commit comments

Comments
 (0)