File tree Expand file tree Collapse file tree 2 files changed +56
-6
lines changed Expand file tree Collapse file tree 2 files changed +56
-6
lines changed Original file line number Diff line number Diff line change 18
18
target : x86_64-pc-windows-msvc
19
19
- os : windows-latest
20
20
target : aarch64-pc-windows-msvc
21
+ extraargs : --exclude livekit-api # livekit-api isn't compatible with windows arm64 (waiting for v0.17 of ring)
21
22
- os : macos-latest
22
23
target : x86_64-apple-darwin
23
24
- os : macos-latest
@@ -36,17 +37,12 @@ jobs:
36
37
rustup update --no-self-update stable
37
38
rustup target add ${{ matrix.target }}
38
39
39
- - if : ${{ matrix.target == 'aarch64-pc-windows-msvc' }}
40
- run : |
41
- echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\Llvm\x64\bin" >> $GITHUB_PATH
42
- shell : bash
43
-
44
40
- uses : actions/checkout@v3
45
41
with :
46
42
submodules : true
47
43
48
44
- name : Build
49
- run : cargo build --release --verbose --target ${{ matrix.target }}
45
+ run : cargo build --workspace -- release --verbose --target ${{ matrix.target }} ${{ matrix.extraargs }}
50
46
51
47
- name : Build examples
52
48
working-directory : examples
Original file line number Diff line number Diff line change
1
+ name : WebRTC builds
2
+ on : workflow_dispatch
3
+ env :
4
+ CARGO_TERM_COLOR : always
5
+
6
+ jobs :
7
+ build :
8
+ strategy :
9
+ matrix :
10
+ include :
11
+ - os : windows-latest
12
+ cmd : .\build_windows.cmd
13
+ artifacts : windows
14
+ - os : ubuntu-latest
15
+ cmd : ./build_linux.sh
16
+ artifacts : linux
17
+ - os : macos-latest
18
+ cmd : ./build_macos.sh
19
+ artifacts : macos
20
+
21
+ name : Build webrtc (${{ matrix.os }})
22
+ runs-on : ${{ matrix.os }}
23
+ steps :
24
+ - uses : actions/checkout@v3
25
+ with :
26
+ submodules : true
27
+
28
+ - name : Install linux dependencies
29
+ if : ${{ matrix.os == 'ubuntu-latest' }}
30
+ run : sudo apt install -y ninja-build pkg-config
31
+
32
+ - name : Install macos dependencies
33
+ if : ${{ matrix.os == 'macos-latest' }}
34
+ run : brew install ninja
35
+
36
+ - name : Install windows dependencies
37
+ if : ${{ matrix.os == 'windows-latest' }}
38
+ run : |
39
+ Invoke-WebRequest -Uri "https://github.com/ninja-build/ninja/releases/latest/download/ninja-win.zip" -OutFile ninja.zip
40
+ Expand-Archive -Path ninja.zip -DestinationPath ninja
41
+ echo "${{github.workspace}}\ninja" >> $GITHUB_PATH
42
+
43
+ - name : Print ninja version
44
+ run : ninja --version
45
+
46
+ - name : Build
47
+ run : ${{ matrix.cmd }}
48
+ working-directory : webrtc-sys/libwebrtc
49
+
50
+ - name : Upload artifacts
51
+ uses : actions/upload-artifact@v3
52
+ with :
53
+ name : builds-${{ matrix.artifacts }}
54
+ path : webrtc-sys/libwebrtc/${{ matrix.artifacts }}
You can’t perform that action at this time.
0 commit comments