Skip to content

Commit

Permalink
Video daemon (#144)
Browse files Browse the repository at this point in the history
* Video daemon

* resurrected the codes

* cargo fix

* fix large packet size

* Fix connection packet

* Increase uni stream size limit

* fixes

* Clippy and fmt

* No doctest

* use same versions

* allow lint

* Same version

* Update ui

* Revert unrelated change

* Simplify logic

* Revert "Simplify logic"

This reverts commit 6168c00.

* Move logic to function

* Return conditional

* clippy

* Use api base image

* panic

* Data is at least being decoded

* removing image parsing

* check in yuyv parser

* got it to encode with profile 0

* got camera to work, color space looks good

* install wasm-bindgen-test

* updated many libraries until everything compiled

* upgraded rust in docker images

* clippy

* I feel monotonically increasing

* got it to work :)

* added fps debug thread back

* Better error handling, reconnect on not connected

* Passing videocall-client tests

* Add build-essential

* libclang-dev

* Exclude video-daemon from cargo workspace

* Update path

* Not clippy-preview

* Fix rustlemania.com

* Update docs

* Good start on audio encoding

* Remove noisy print message

* Working microphone

* Add comment

* Fix up mic audio

* clippy

* fmt

* add clippy 2023-12-13

* remove nightly rust, since it is not longer required

* add clippy ignore

* Consistent packet size

---------

Co-authored-by: Dario Alessandro Lencina Talarico <darioalessandrolencina@gmail.com>
Co-authored-by: Dario Lencina <dario@securityunion.dev>
  • Loading branch information
3 people committed Dec 21, 2023
1 parent e28c516 commit e02127b
Show file tree
Hide file tree
Showing 62 changed files with 7,455 additions and 3,882 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
**/target
**/dist
Dockerfile*
100 changes: 33 additions & 67 deletions .github/workflows/cargo-test.yaml
Original file line number Diff line number Diff line change
@@ -1,76 +1,42 @@
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md

on: [pull_request]

name: cargo test

env:
ACTIX_PORT: 8080
UI_ENDPOINT: localhost:80
OAUTH_CLIENT_ID: blah
OAUTH_AUTH_URL: blah
OAUTH_TOKEN_URL: blah
OAUTH_CLIENT_SECRET: blah
OAUTH_REDIRECT_URL: http://localhost:8080/login/callback
RUST_LOG: info
DATABASE_URL: postgres://postgres:docker@postgres:5432/actix-api-db?sslmode=disable
ACTIX_UI_BACKEND_URL: yeet
LOGIN_URL: yeet
WEBTRANSPORT_HOST: yeet
ENABLE_OAUTH: false
WEBTRANSPORT_ENABLED: true
E2EE_ENABLED: true

on:
pull_request:
paths:
- 'actix-api/**'
- 'types/**'
- 'yew-ui/**'
- 'docker/**'

name: check backend

jobs:

test-api:
name: cargo test and lint api
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.70
with:
components: clippy, rustfmt
- run: cd actix-api && cargo clippy -- --deny warnings
- run: cd actix-api && cargo fmt --check
- run: cd actix-api && cargo test


lint-ui:
name: cargo lint ui
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.65
# Cache Docker layers
- name: Cache Docker layers
uses: actions/cache@v2
with:
components: clippy, rustfmt
toolchain: nightly-2023-01-27
- run: rustup target add wasm32-unknown-unknown
- run: cd yew-ui && cargo fmt --check

test-ui:
name: UI Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
working-directory: ./yew-ui

- name: Install nightly toolchain and wasm32-unknown-unknown
uses: actions-rs/toolchain@v1
with:
profile: minimal
target: wasm32-unknown-unknown
toolchain: nightly-2023-01-27
override: true

- name: Install wasm-bindgen-cli
uses: jetli/wasm-bindgen-action@v0.2.0
path: /tmp/.docker
key: ${{ runner.os }}-docker-${{ github.sha }}
restore-keys: |
${{ runner.os }}-docker-
# Cache Rust build artifacts
- name: Cache Cargo Registry
uses: actions/cache@v2
with:
version: 'latest'

- name: Run cargo test
run: |
cd yew-ui
cargo test
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- run: make check
- run: make test
Loading

0 comments on commit e02127b

Please sign in to comment.