Skip to content

Commit

Permalink
Disable livekit-api on win-aarch64 & WebRTC Builds CI (#51)
Browse files Browse the repository at this point in the history
* update CI

* fix path

* fix attempt

* fix attempt 2

* fix attempt 3

* fix attempt 3
  • Loading branch information
theomonnom authored Apr 19, 2023
1 parent 9000d82 commit 72bbc8c
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
target: x86_64-pc-windows-msvc
- os: windows-latest
target: aarch64-pc-windows-msvc
extraargs: --exclude livekit-api # livekit-api isn't compatible with windows arm64 (waiting for v0.17 of ring)
- os: macos-latest
target: x86_64-apple-darwin
- os: macos-latest
Expand All @@ -36,17 +37,12 @@ jobs:
rustup update --no-self-update stable
rustup target add ${{ matrix.target }}
- if: ${{ matrix.target == 'aarch64-pc-windows-msvc' }}
run: |
echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\Llvm\x64\bin" >> $GITHUB_PATH
shell: bash

- uses: actions/checkout@v3
with:
submodules: true

- name: Build
run: cargo build --release --verbose --target ${{ matrix.target }}
run: cargo build --workspace --release --verbose --target ${{ matrix.target }} ${{ matrix.extraargs }}

- name: Build examples
working-directory: examples
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/webrtc-builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: WebRTC builds
on: workflow_dispatch
env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
matrix:
include:
- os: windows-latest
cmd: .\build_windows.cmd
artifacts: windows
- os: ubuntu-latest
cmd: ./build_linux.sh
artifacts: linux
- os: macos-latest
cmd: ./build_macos.sh
artifacts: macos

name: Build webrtc (${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Install linux dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt install -y ninja-build pkg-config

- name: Install macos dependencies
if: ${{ matrix.os == 'macos-latest' }}
run: brew install ninja

- name: Install windows dependencies
if: ${{ matrix.os == 'windows-latest' }}
run: |
Invoke-WebRequest -Uri "https://github.com/ninja-build/ninja/releases/latest/download/ninja-win.zip" -OutFile ninja.zip
Expand-Archive -Path ninja.zip -DestinationPath ninja
echo "${{github.workspace}}\ninja" >> $GITHUB_PATH
- name: Print ninja version
run: ninja --version

- name: Build
run: ${{ matrix.cmd }}
working-directory: webrtc-sys/libwebrtc

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: builds-${{ matrix.artifacts }}
path: webrtc-sys/libwebrtc/${{ matrix.artifacts }}

0 comments on commit 72bbc8c

Please sign in to comment.