Skip to content

Commit e02127b

Browse files
Video daemon (#144)
* 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 <[email protected]> Co-authored-by: Dario Lencina <[email protected]>
1 parent e28c516 commit e02127b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+7455
-3882
lines changed

Diff for: .dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
**/target
22
**/dist
3+
Dockerfile*

Diff for: .github/workflows/cargo-test.yaml

+33-67
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,42 @@
11
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
22

3-
on: [pull_request]
4-
5-
name: cargo test
6-
7-
env:
8-
ACTIX_PORT: 8080
9-
UI_ENDPOINT: localhost:80
10-
OAUTH_CLIENT_ID: blah
11-
OAUTH_AUTH_URL: blah
12-
OAUTH_TOKEN_URL: blah
13-
OAUTH_CLIENT_SECRET: blah
14-
OAUTH_REDIRECT_URL: http://localhost:8080/login/callback
15-
RUST_LOG: info
16-
DATABASE_URL: postgres://postgres:docker@postgres:5432/actix-api-db?sslmode=disable
17-
ACTIX_UI_BACKEND_URL: yeet
18-
LOGIN_URL: yeet
19-
WEBTRANSPORT_HOST: yeet
20-
ENABLE_OAUTH: false
21-
WEBTRANSPORT_ENABLED: true
22-
E2EE_ENABLED: true
23-
3+
on:
4+
pull_request:
5+
paths:
6+
- 'actix-api/**'
7+
- 'types/**'
8+
- 'yew-ui/**'
9+
- 'docker/**'
10+
11+
name: check backend
12+
2413
jobs:
25-
26-
test-api:
27-
name: cargo test and lint api
14+
test:
15+
name: cargo test
2816
runs-on: ubuntu-latest
2917
steps:
3018
- uses: actions/checkout@v3
31-
- uses: dtolnay/[email protected]
32-
with:
33-
components: clippy, rustfmt
34-
- run: cd actix-api && cargo clippy -- --deny warnings
35-
- run: cd actix-api && cargo fmt --check
36-
- run: cd actix-api && cargo test
3719

38-
39-
lint-ui:
40-
name: cargo lint ui
41-
runs-on: ubuntu-latest
42-
steps:
43-
- uses: actions/checkout@v3
44-
- uses: dtolnay/[email protected]
20+
# Cache Docker layers
21+
- name: Cache Docker layers
22+
uses: actions/cache@v2
4523
with:
46-
components: clippy, rustfmt
47-
toolchain: nightly-2023-01-27
48-
- run: rustup target add wasm32-unknown-unknown
49-
- run: cd yew-ui && cargo fmt --check
50-
51-
test-ui:
52-
name: UI Test Suite
53-
runs-on: ubuntu-latest
54-
steps:
55-
- name: Checkout sources
56-
uses: actions/checkout@v2
57-
with:
58-
working-directory: ./yew-ui
59-
60-
- name: Install nightly toolchain and wasm32-unknown-unknown
61-
uses: actions-rs/toolchain@v1
62-
with:
63-
profile: minimal
64-
target: wasm32-unknown-unknown
65-
toolchain: nightly-2023-01-27
66-
override: true
67-
68-
- name: Install wasm-bindgen-cli
69-
uses: jetli/[email protected]
24+
path: /tmp/.docker
25+
key: ${{ runner.os }}-docker-${{ github.sha }}
26+
restore-keys: |
27+
${{ runner.os }}-docker-
28+
29+
# Cache Rust build artifacts
30+
- name: Cache Cargo Registry
31+
uses: actions/cache@v2
7032
with:
71-
version: 'latest'
72-
73-
- name: Run cargo test
74-
run: |
75-
cd yew-ui
76-
cargo test
33+
path: |
34+
~/.cargo/registry
35+
~/.cargo/git
36+
target
37+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
38+
restore-keys: |
39+
${{ runner.os }}-cargo-
40+
41+
- run: make check
42+
- run: make test

0 commit comments

Comments
 (0)