Skip to content

Commit 72bbc8c

Browse files
authored
Disable livekit-api on win-aarch64 & WebRTC Builds CI (#51)
* update CI * fix path * fix attempt * fix attempt 2 * fix attempt 3 * fix attempt 3
1 parent 9000d82 commit 72bbc8c

File tree

2 files changed

+56
-6
lines changed

2 files changed

+56
-6
lines changed

.github/workflows/builds.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
target: x86_64-pc-windows-msvc
1919
- os: windows-latest
2020
target: aarch64-pc-windows-msvc
21+
extraargs: --exclude livekit-api # livekit-api isn't compatible with windows arm64 (waiting for v0.17 of ring)
2122
- os: macos-latest
2223
target: x86_64-apple-darwin
2324
- os: macos-latest
@@ -36,17 +37,12 @@ jobs:
3637
rustup update --no-self-update stable
3738
rustup target add ${{ matrix.target }}
3839
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-
4440
- uses: actions/checkout@v3
4541
with:
4642
submodules: true
4743

4844
- name: Build
49-
run: cargo build --release --verbose --target ${{ matrix.target }}
45+
run: cargo build --workspace --release --verbose --target ${{ matrix.target }} ${{ matrix.extraargs }}
5046

5147
- name: Build examples
5248
working-directory: examples

.github/workflows/webrtc-builds.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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 }}

0 commit comments

Comments
 (0)