fork/rust-sdks

git clone https://git.julia.blue/fork/rust-sdks

Mathew Kamkarupdate more gh runner images (#579)e41cced

livekit/livekit-ffi@0.13.0
1.7 KiB62 linesraw
1# Copyright 2023 LiveKit, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15name: Tests
16
17on:
18  push:
19    branches: ["main"]
20  pull_request:
21    branches: ["main"]
22
23env:
24  CARGO_TERM_COLOR: always
25  RUST_LOG: debug
26
27jobs:
28  build:
29    strategy:
30      fail-fast: false
31      matrix:
32        include:
33          # Platform supports is limited for tests (no aarch64)
34          - os: windows-latest
35            target: x86_64-pc-windows-msvc
36          - os: macos-latest
37            target: x86_64-apple-darwin
38          - os: ubuntu-latest
39            target: x86_64-unknown-linux-gnu
40
41    name: Test (${{ matrix.target }})
42    runs-on: ${{ matrix.os }}
43    steps:
44      - name: Install Rust toolchain
45        run: |
46          rustup update --no-self-update nightly
47          rustup target add ${{ matrix.target }} --toolchain nightly
48
49      - name: Install linux dependencies
50        if: ${{ matrix.os == 'ubuntu-latest' }}
51        run: |
52          sudo apt update -y
53          sudo apt install -y libssl-dev libx11-dev libgl1-mesa-dev libxext-dev
54
55      - uses: actions/checkout@v3
56        with:
57          submodules: true
58
59      - name: Test
60        run: cargo +nightly test --release --verbose --target ${{ matrix.target }} -- --nocapture
61
62