Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move moq-gst and moq-web into the workspace. #258

Merged
merged 4 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion moq-web/.cargo/config.toml → .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[build]
target = "wasm32-unknown-unknown"
rustflags = ["--cfg=web_sys_unstable_apis"]
75 changes: 25 additions & 50 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,36 @@ jobs:
with:
components: clippy, rustfmt

# Make sure u guys don't write bad code
- run: cargo test --verbose
- run: cargo clippy --no-deps
- run: cargo fmt --check

# Check for unused dependencies
- uses: bnjbvr/cargo-machete@main

wasm:
name: WASM Checks
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./moq-web

steps:
- uses: actions/checkout@v3

# Install Rust with clippy/rustfmt
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: wasm32-unknown-unknown
components: clippy, rustfmt
# Annoying: we need gstreamer installed to compile moq-gst
- name: Setup GStreamer
run: |
sudo apt-get update
sudo apt-get remove libunwind-*
sudo apt-get install -y \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
libgstreamer-plugins-bad1.0-dev \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
gstreamer1.0-tools \
gstreamer1.0-x \
gstreamer1.0-alsa \
gstreamer1.0-gl \
gstreamer1.0-gtk3 \
gstreamer1.0-qt5 \
gstreamer1.0-pulseaudio

# Required for unstable WebCodecs and WebTransport
- run: echo "RUSTFLAGS=--cfg=web_sys_unstable_apis" >> $GITHUB_ENV

# Make sure u guys don't write bad code
- run: cargo check --verbose
- run: cargo clippy --no-deps
- run: cargo fmt --check
- run: cargo check --all --verbose
- run: cargo test --all --verbose
- run: cargo clippy --all --no-deps
- run: cargo fmt --all --check

# Check for unused dependencies
- uses: bnjbvr/cargo-machete@main
Expand All @@ -70,27 +69,3 @@ jobs:
- run: bun install
- run: bun pack
- run: bun pm pack

gst:
name: GStreamer Checks
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./moq-gst

steps:
- uses: actions/checkout@v3

# Install Rust with clippy/rustfmt
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy, rustfmt

# We need gstreamer installed to compile this repo
- name: Setup GStreamer
uses: blinemedical/setup-gstreamer@v1

# Make sure u guys don't write bad code
- run: cargo test --verbose
- run: cargo clippy --no-deps
- run: cargo fmt --check
18 changes: 0 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

- name: Release-plz Web
uses: MarcoIeni/[email protected]
with:
manifest_path: moq-web/Cargo.toml
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}


- name: Release-plz Gstreamer
uses: MarcoIeni/[email protected]
with:
manifest_path: moq-gst/Cargo.toml
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

Loading
Loading