From 28457510e260f812d9c43c6264e79940e1e5289c Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Tue, 26 Sep 2023 18:53:43 +0700 Subject: [PATCH] Add dependencies into github action --- .github/workflows/build.yml | 5 ++++- Dockerfile | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae72c9f..34fc187 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,6 +43,7 @@ jobs: run: | choco install -y --no-progress gstreamer --version=1.20.0 choco install -y --no-progress gstreamer-devel --version=1.20.0 + choco install -y --no-progress openssl --version=1.1.1.2100 $env:GSTREAMER_1_0_ROOT_MSVC_X86_64=$env:SYSTEMDRIVE + '\gstreamer\1.0\msvc_x86_64\' echo "GSTREAMER_1_0_ROOT_MSVC_X86_64=$env:GSTREAMER_1_0_ROOT_MSVC_X86_64" Add-Content -Path $env:GITHUB_ENV -Value "GSTREAMER_1_0_ROOT_MSVC_X86_64=$env:GSTREAMER_1_0_ROOT_MSVC_X86_64" @@ -75,6 +76,8 @@ jobs: with: path: target key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} + - name: Install Protoc + uses: arduino/setup-protoc@v2 - name: Build shell: bash run: | @@ -122,7 +125,7 @@ jobs: - name: Install basic tools run: | apt-get update - apt-get install --assume-yes --no-install-recommends curl ca-certificates + apt-get install --assume-yes --no-install-recommends curl ca-certificates protobuf-compiler - name: Install ${{ matrix.arch }} cross compiler and gstreamer id: setup run: | diff --git a/Dockerfile b/Dockerfile index 70c0953..f1ba75e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,7 @@ RUN echo "TARGETPLATFORM: ${TARGETPLATFORM}"; \ libgstrtspserver-1.0-dev \ libgstreamer1.0-dev \ libgtk2.0-dev \ + protobuf-compiler \ libglib2.0-dev && \ apt-get clean -y && rm -rf /var/lib/apt/lists/* ; \ cargo build --release; \