WIP: fix(ci): restore Rust and supply-chain checks on Gitea #117

Manually merged
Lochnair merged 3 commits from fix/gitea-ci-prerequisites into master 2026-10-28 14:49:06 +00:00
7 changed files with 35 additions and 4 deletions

No files matched your search

+13 -1
View File
@@ -44,6 +44,10 @@ jobs:
with:
components: clippy
cache: false
- name: Install UCI build dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends build-essential cmake libclang-dev pkg-config
- name: Run clippy with all features
run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
- name: Run clippy without default features
@@ -74,11 +78,15 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Install UCI build dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends build-essential cmake libclang-dev pkg-config
- name: Install musl toolchain
if: matrix.musl
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends musl-tools
sudo apt-get install -y --no-install-recommends musl-tools
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2
with:
@@ -104,6 +112,10 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2
with:
cache: false
- name: Install UCI build dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends build-essential cmake libclang-dev pkg-config
- name: Check documentation
run: cargo doc --workspace --all-features --no-deps --locked
- name: Run doctests
+10
View File
@@ -35,6 +35,10 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2
with:
cache: false
- name: Install cargo-deny
run: cargo install cargo-deny --version "${CARGO_DENY_VERSION}" --locked
- name: Run cargo-deny
@@ -49,6 +53,12 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Install Go toolchain
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: stable
cache: false
token: ''
- name: Install actionlint
run: go install "github.com/rhysd/actionlint/cmd/actionlint@v${ACTIONLINT_VERSION}"
- name: Check workflow syntax
Generated
+2 -2
View File
@@ -188,9 +188,9 @@ dependencies = [
[[package]]
name = "ctutils"
version = "0.4.3"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03bb0e1cc970d482d121d9a1744999169b69a07470b3d644a7894e53fcaf4574"
checksum = "12218662ccac37d9714f2191252553d67585b97df8c839cbe49e0bde278dc865"
dependencies = [
"cmov",
]
+1
View File
@@ -3,6 +3,7 @@ name = "uci-derive"
version = "0.1.0"
edition = "2024"
publish = false
license = "MPL-2.0"
[lib]
proc-macro = true
+4
View File
@@ -42,6 +42,10 @@ pub struct Controller {
}
impl Controller {
#[allow(
clippy::too_many_arguments,
reason = "Constructor wires the controller channels and shared stream state"
)]
pub fn new(
reflector_rx: Receiver<Vec<SocketAddr>>,
icmp_binding_tx: Sender<Vec<IcmpBinding>>,
+4
View File
@@ -150,6 +150,10 @@ pub struct Ratecontroller<S: InterfaceStatsProvider, T: TrafficControlBackend> {
}
impl<S: InterfaceStatsProvider, T: TrafficControlBackend> Ratecontroller<S, T> {
#[allow(
clippy::too_many_arguments,
reason = "Constructor injects independent runtime and test backends"
)]
fn new_with_backends(
settings: Settings,
control_snapshot_rx: Receiver<ControlSnapshot>,
+1 -1
View File
@@ -235,7 +235,7 @@ impl ReflectorSelector {
}
// Sort the candidates table now by ascending RTT
candidates.sort_by(|a, b| a.1.cmp(&b.1));
candidates.sort_by_key(|candidate| candidate.1);
// Now we will just limit the candidates down to 2 * num_reflectors
let num_reflectors = self.settings.reflectors.num_reflectors;