Skip to content
Open
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
39 changes: 18 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,16 @@ jobs:
uses: actions-rs/clippy-check@v1
if: env.GITHUB_TOKEN != null
with:
args: --all-targets --features prometheus,alpha,binary-set-pixel,binary-sync-pixels,egui,winit,vnc,ndi -- -D warnings
args: --all-targets --features prometheus,binary-set-pixel,egui,winit,vnc,ndi -- -D warnings
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run clippy (no default features)
run: cargo clippy --all-targets --no-default-features -- -D warnings
- name: Run clippy (all compatible features)
run: cargo clippy --all-targets --features prometheus,alpha,binary-set-pixel,binary-sync-pixels,egui,winit,vnc,ndi -- -D warnings
run: cargo clippy --all-targets --features prometheus,binary-set-pixel,egui,winit,vnc,ndi -- -D warnings
- name: Run clippy on the time-tracking feature (mutually exclusive with alpha and binary-sync-pixels)
run: cargo clippy --all-targets --features prometheus,binary-set-pixel,egui,winit,vnc,ndi,time-tracking -- -D warnings
- name: Run clippy (all compatible features for breakwater)
run: cargo clippy -p breakwater --features prometheus,alpha,binary-set-pixel,binary-sync-pixels,egui,winit,vnc,ndi -- -D warnings

run_rustdoc:
name: Run RustDoc
Expand Down Expand Up @@ -127,23 +129,16 @@ jobs:
run: sudo apt update && sudo apt install -y libvncserver-dev
- name: Install NDI SDK
uses: ./.github/actions/install-ndi
- name: Test with all features turned off
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --all-targets
# We can't use `--all-features`: `time-tracking` is mutually exclusive with `alpha` and
# `binary-sync-pixels`. So we test explicit, valid combinations.
- name: Run tests (no default features)
run: cargo test --all-targets --no-default-features
- name: Run tests (all compatible features)
run: cargo test --all-targets --features prometheus,binary-set-pixel,egui,winit,vnc,ndi
- name: Run tests on the time-tracking feature (mutually exclusive with alpha and binary-sync-pixels)
run: cargo test --all-targets --features prometheus,binary-set-pixel,egui,winit,vnc,ndi,time-tracking
- name: Test breakwater with all compatible features
uses: actions-rs/cargo@v1
with:
command: test
args: --features prometheus,alpha,binary-set-pixel,binary-sync-pixels,egui,winit,vnc,ndi --all-targets
run: cargo test -p breakwater --features prometheus,alpha,binary-set-pixel,binary-sync-pixels,egui,winit,vnc,ndi
- name: Test breakwater-parser with the time-tracking feature (mutually exclusive with alpha and binary-sync-pixels)
uses: actions-rs/cargo@v1
with:
command: test
args: --features prometheus,binary-set-pixel,egui,winit,vnc,ndi,time-tracking --all-targets
run: cargo test -p breakwater-parser --features time-tracking,binary-set-pixel

run_tests_for_feature_combinations:
name: Run tests for all feature combinations
Expand Down Expand Up @@ -209,16 +204,18 @@ jobs:
with:
command: build
args: --target=${{ matrix.target }} --no-default-features
- if: runner.os == 'Linux'
- name: Build on Linux (all compatible features)
if: runner.os == 'Linux'
uses: actions-rs/cargo@v1
with:
command: build
# ndi-sdk-sys (behind the ndi features) only supports Linux x86 (no aarch64) so far.
# We already run the tests on x86 Linux with all features above.
args: --target=${{ matrix.target }} --features prometheus,alpha,binary-set-pixel,binary-sync-pixels,egui,winit,vnc
args: --target=${{ matrix.target }} --features prometheus,binary-set-pixel,egui,winit,vnc
# I couldn't get pkg-config to work on macOS and Windows, so we omit the vnc and ndi feature
- if: runner.os == 'macOS' || runner.os == 'Windows'
- name: Build on Windows/MacOS (all compatible features)
if: runner.os == 'Windows' || runner.os == 'macOS'
uses: actions-rs/cargo@v1
with:
command: build
args: --target=${{ matrix.target }} --no-default-features --features prometheus,alpha,binary-set-pixel,binary-sync-pixels,egui,winit
args: --target=${{ matrix.target }} --no-default-features --features prometheus,binary-set-pixel,egui,winit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.vscode/
statistics.json
/pixelflut/
worker-id
Loading
Loading