generated from security-union/yew-actix-template
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* save * add debian distribution * github action * save * swap ubuntu for debian * use ubuntu-latest
- Loading branch information
1 parent
e02127b
commit d8eee8a
Showing
4 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build and Package DEB | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- add-debian-distribution | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build_and_package: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
override: true | ||
|
||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y pkg-config libclang-dev libvpx-dev libasound2-dev libv4l-dev cmake | ||
- name: Build and Create DEB Package | ||
run: | | ||
cargo install cargo-deb | ||
cd video-daemon | ||
cargo deb | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: video-daemon.deb | ||
path: video-daemon/target/debian/*.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,20 @@ | |
name = "video-daemon" | ||
version = "0.1.0" | ||
edition = "2021" | ||
description = "Stream audio and video to the videocall-rs backend" | ||
license = "MIT" | ||
authors = [ | ||
"Griffin Obeid <[email protected]>", | ||
"Dario Lencina <[email protected]>", | ||
] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[package.metadata.deb] | ||
maintainer = "Dario Lencina <[email protected]>" | ||
license-file = ["../LICENSE.md", "4"] | ||
depends = "libvpx7 (>= 1.11.0), libvpx-dev (>= 1.11.0), libc6 (>= 2.34), libasound2-dev (>=1.2.8), libv4l-dev (>=1.22.1)" | ||
|
||
[dependencies] | ||
anyhow = "1.0.75" | ||
base64 = "0.21.4" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# List of packages to check | ||
packages=( | ||
"build-essential" | ||
"pkg-config" | ||
"libclang-dev" | ||
"libvpx-dev" | ||
"libasound2-dev" | ||
"cmake" | ||
"libv4l-dev" | ||
) | ||
|
||
# Function to check the version of a package | ||
check_package_version() { | ||
package=$1 | ||
version=$(dpkg-query -W -f='${Version}\n' $package 2>/dev/null) | ||
if [ -z "$version" ]; then | ||
echo "$package is not installed." | ||
else | ||
echo "$package version: $version" | ||
fi | ||
} | ||
|
||
# Check the version of each package | ||
for package in "${packages[@]}"; do | ||
check_package_version $package | ||
done |