From a4d71059228f8f79459df980768e5582ef64fd3e Mon Sep 17 00:00:00 2001 From: Celestial Date: Sun, 12 Apr 2026 09:52:55 +0200 Subject: [PATCH 1/3] fix(ci): restore native sdk release builds --- .github/actions/rust-ci-setup/action.yml | 21 ++++++ crates/sof-solana-gossip/src/node.rs | 5 +- docs/gitbook/_layouts/website/page.html | 30 ++++---- docs/gitbook/styles/website.css | 93 +++++++++++++++++++++++- 4 files changed, 132 insertions(+), 17 deletions(-) diff --git a/.github/actions/rust-ci-setup/action.yml b/.github/actions/rust-ci-setup/action.yml index 56a6659f..ef326a3f 100644 --- a/.github/actions/rust-ci-setup/action.yml +++ b/.github/actions/rust-ci-setup/action.yml @@ -46,6 +46,27 @@ runs: fi fi + - name: Install Perl for vendored OpenSSL (Windows) + if: runner.os == 'Windows' + shell: powershell + run: | + choco install strawberryperl --yes --no-progress + $perlBin = 'C:\Strawberry\perl\bin' + if (-not (Test-Path $perlBin)) { + throw "expected Strawberry Perl at $perlBin" + } + $perlExe = Join-Path $perlBin 'perl.exe' + if (-not (Test-Path $perlExe)) { + throw "expected Perl executable at $perlExe" + } + $cBin = 'C:\Strawberry\c\bin' + Add-Content -Path $env:GITHUB_PATH -Value $perlBin + if (Test-Path $cBin) { + Add-Content -Path $env:GITHUB_PATH -Value $cBin + } + Add-Content -Path $env:GITHUB_ENV -Value "PERL=$perlExe" + & $perlExe -MLocale::Maketext::Simple -e "exit 0" + - name: Install Rust toolchain if: ${{ inputs.install-rust-toolchain == 'true' }} uses: dtolnay/rust-toolchain@stable diff --git a/crates/sof-solana-gossip/src/node.rs b/crates/sof-solana-gossip/src/node.rs index 4d0aa9eb..f0b6a86a 100644 --- a/crates/sof-solana-gossip/src/node.rs +++ b/crates/sof-solana-gossip/src/node.rs @@ -21,16 +21,17 @@ use { solana_streamer::quic::DEFAULT_QUIC_ENDPOINTS, solana_time_utils::timestamp, std::{ - env, io, iter::once, net::{IpAddr, Ipv4Addr, SocketAddr, UdpSocket}, num::NonZero, - os::fd::AsRawFd, sync::Arc, }, }; +#[cfg(target_os = "linux")] +use std::{env, os::fd::AsRawFd}; + // Socket addresses for each protocol across all interfaces #[derive(Debug, Clone)] pub struct MultihomingAddresses { diff --git a/docs/gitbook/_layouts/website/page.html b/docs/gitbook/_layouts/website/page.html index e138f2f2..0e40b1bf 100644 --- a/docs/gitbook/_layouts/website/page.html +++ b/docs/gitbook/_layouts/website/page.html @@ -121,14 +121,16 @@