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