fork/rust-sdks
git clone https://git.julia.blue/fork/rust-sdks
e41cced
main
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 : 18push : 19branches : [ "main" ] 20pull_request : 21branches : [ "main" ] 22 23env : 24CARGO_TERM_COLOR : always 25RUST_LOG : debug 26 27jobs : 28build : 29strategy : 30fail-fast : false 31matrix : 32include : 33# Platform supports is limited for tests (no aarch64) 34- os : windows-latest 35target : x86_64-pc-windows-msvc 36- os : macos-latest 37target : x86_64-apple-darwin 38- os : ubuntu-latest 39target : x86_64-unknown-linux-gnu 40 41name : Test (${{ matrix.target }}) 42runs-on : ${{ matrix.os }} 43steps : 44- name : Install Rust toolchain 45run : | 46rustup update --no-self-update nightly 47rustup target add ${{ matrix.target }} --toolchain nightly 48 49- name : Install linux dependencies 50if : ${{ matrix.os == 'ubuntu-latest' }} 51run : | 52sudo apt update -y 53sudo apt install -y libssl-dev libx11-dev libgl1-mesa-dev libxext-dev 54 55- uses : actions/checkout@v3 56with : 57submodules : true 58 59- name : Test 60run : cargo +nightly test --release --verbose --target ${{ matrix.target }} -- --nocapture 61 62