Skip to content
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
5 changes: 4 additions & 1 deletion .devcontainer/almalinux/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
"editor.formatOnSave": true,
"[cpp]": {
"editor.defaultFormatter": "xaver.clang-format"
}
},
"rust-analyzer.linkedProjects": [
"${workspaceFolder}/rust/Cargo.toml"
]
}
}
},
Expand Down
5 changes: 4 additions & 1 deletion .devcontainer/amazonlinux/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
"editor.formatOnSave": true,
"[cpp]": {
"editor.defaultFormatter": "xaver.clang-format"
}
},
"rust-analyzer.linkedProjects": [
"${workspaceFolder}/rust/Cargo.toml"
]
}
}
},
Expand Down
5 changes: 4 additions & 1 deletion .devcontainer/debiantrixie/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
"editor.formatOnSave": true,
"[cpp]": {
"editor.defaultFormatter": "xaver.clang-format"
}
},
"rust-analyzer.linkedProjects": [
"${workspaceFolder}/rust/Cargo.toml"
]
}
}
},
Expand Down
1 change: 0 additions & 1 deletion .devcontainer/scripts/common/rust/install-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ cargo binstall cargo-outdated --locked
cargo binstall cargo-machete --locked

cargo binstall cargo-deny --locked
cargo binstall cargo-audit --locked
cargo binstall cargo-nextest --locked
5 changes: 4 additions & 1 deletion .devcontainer/ubuntu20/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
"editor.formatOnSave": true,
"[cpp]": {
"editor.defaultFormatter": "xaver.clang-format"
}
},
"rust-analyzer.linkedProjects": [
"${workspaceFolder}/rust/Cargo.toml"
]
}
}
},
Expand Down
5 changes: 4 additions & 1 deletion .devcontainer/ubuntu22/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
"editor.formatOnSave": true,
"[cpp]": {
"editor.defaultFormatter": "xaver.clang-format"
}
},
"rust-analyzer.linkedProjects": [
"${workspaceFolder}/rust/Cargo.toml"
]
}
}
},
Expand Down
5 changes: 4 additions & 1 deletion .devcontainer/ubuntu24/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
"editor.formatOnSave": true,
"[cpp]": {
"editor.defaultFormatter": "xaver.clang-format"
}
},
"rust-analyzer.linkedProjects": [
"${workspaceFolder}/rust/Cargo.toml"
]
}
}
},
Expand Down
5 changes: 4 additions & 1 deletion .devcontainer/ubuntu25/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
"editor.formatOnSave": true,
"[cpp]": {
"editor.defaultFormatter": "xaver.clang-format"
}
},
"rust-analyzer.linkedProjects": [
"${workspaceFolder}/rust/Cargo.toml"
]
}
}
},
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ jobs:
mkdir -p ${{ github.workspace }}/install
chmod 777 ${{ github.workspace }}/install
chmod g+s ${{ github.workspace }}/install
mkdir -p ${{ github.workspace }}/rust/target
chmod 777 ${{ github.workspace }}/rust/target
chmod g+s ${{ github.workspace }}/rust/target

- name: Build Docker image
if: steps.check-image.outputs.exists == 'false'
Expand Down Expand Up @@ -162,6 +165,53 @@ jobs:
ctest --output-junit test-results.xml
"

- name: Cache Cargo registry
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-lint-${{ hashFiles('**/Cargo.toml') }}
restore-keys: ${{ runner.os }}-cargo-lint-

- name: Check the Rust bindings
env:
RUSTFLAGS: "-Dwarnings"
run: |
docker run --mount src=${{ github.workspace }},target=/workspace/mxl,type=bind \
-i mxl_build_container_with_source \
bash -c "
cd /workspace/mxl/rust && \
cargo fmt -- --check && \
cargo clippy --all-targets --all-features --locked -- -D warnings && \
cargo audit && \
cargo outdated && \
cargo machete && \
cargo deny check all
"

- name: Build Rust bindings
run: |
docker run --mount src=${{ github.workspace }},target=/workspace/mxl,type=bind \
-i mxl_build_container_with_source \
bash -c "
cd /workspace/mxl/rust && \
cargo build --all-targets --locked && \
cargo build --release --all-targets --locked
"

- name: Test the Rust bindings
run: |
docker run --mount src=${{ github.workspace }},target=/workspace/mxl,type=bind \
-i mxl_build_container_with_source \
bash -c "
cd /workspace/mxl/rust && \
cargo nextest run --release --locked
"

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
Expand Down
146 changes: 0 additions & 146 deletions .github/workflows/rust.yml

This file was deleted.

3 changes: 3 additions & 0 deletions rust/.config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2025 2025 Contributors to the Media eXchange Layer project.
# SPDX-License-Identifier: Apache-2.0

[profile.ci]
fail-fast = false

Expand Down
Loading
Loading