Skip to content

Commit

Permalink
update check flow
Browse files Browse the repository at this point in the history
  • Loading branch information
WT-MM committed Jan 18, 2025
1 parent 1d70369 commit 3564801
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ jobs:
with:
toolchain: stable

- name: Install dependencies
run: make deps

- name: Lint
run: cargo clippy
run: make lint

- name: Check
run: cargo check
run: make check

- name: Build
run: cargo build
run: make build
42 changes: 42 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.PHONY: all build check test lint deps clean

all: deps build

# Install system dependencies
deps:
sudo apt-get update
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 \
libglib2.0-dev \
pkg-config

# Build the project
build:
cargo build

# Run cargo check
check:
cargo check

# Run tests
test:
cargo test

# Run linting
lint:
cargo clippy

# Clean build artifacts
clean:
cargo clean

0 comments on commit 3564801

Please sign in to comment.