From c36a598d7795c33f753055f138d394770d07e4e5 Mon Sep 17 00:00:00 2001 From: George Hilliard Date: Tue, 28 Apr 2020 16:28:18 -0500 Subject: [PATCH] Refactor CI to install Gstreamer --- .github/workflows/build.yaml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 078586f..c0a0ba6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -3,14 +3,24 @@ name: CI on: [push] jobs: - build: - name: Neolink - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-18.04, windows-2019] + ubuntu: + name: neolink-ubuntu + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 + - run: sudo apt update + - run: sudo apt install -y libgstrtspserver-1.0-dev libgstreamer1.0-dev libgstreamer-plugins-bad1.0-dev libgstreamer-plugins-good1.0-dev + - uses: actions-rs/cargo@v1 + with: + command: build + args: --release --all-features + + win: + name: neolink-win2019 + runs-on: windows-2019 + steps: + - uses: actions/checkout@v2 + - run: choco install gstreamer - uses: actions-rs/cargo@v1 with: command: build