Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHayton committed Jul 30, 2024
1 parent 314e8f3 commit 470cf24
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Checkout sources
uses: actions/checkout@v2
- name: Cargo build all projects
run: bash ./scripts/build-all.sh
- name: Cargo clippy all projects
run: bash ./scripts/clippy-all.sh

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ crate-type = ["cdylib", "rlib"]

[features]
default = ["flume", "input-native", "output-convert-to-rgb"]
serialize = ["serde", "jaenokhwa-core/serialize"]
serialize = ["serde", "jaenokhwa-core/serialize", "four-cc/serde"]
input-avfoundation = ["jaenokhwa-bindings-macos"]
input-msmf = ["jaenokhwa-bindings-windows"]
input-v4l = ["jaenokhwa-bindings-linux"]
Expand Down
18 changes: 18 additions & 0 deletions scripts/build-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

project_dirs=("jaenokhwa-core" "jaenokhwa-bindings-linux" "jaenokhwa-bindings-macos" "jaenokhwa-bindings-windows")

# Loop through each project folder
for project in project_dirs; do
# Change directory to the project folder
cd "$project"

# Run cargo build with default features
cargo build

# Run cargo build with all features
cargo build --features serialize,output-threaded

# Change directory back to the example folder
cd ..
done

0 comments on commit 470cf24

Please sign in to comment.