mirror of
https://github.com/imjasonh/krust
synced 2026-07-08 06:45:32 +00:00
Disable Windows CI temporarily
Remove Windows from the CI matrix to focus on getting Linux and macOS working reliably first. Windows cross-compilation and Docker support can be added back once the core functionality is stable.
This commit is contained in:
parent
2e51f0ad49
commit
40dbb7053e
1 changed files with 1 additions and 37 deletions
38
.github/workflows/ci.yml
vendored
38
.github/workflows/ci.yml
vendored
|
|
@ -16,7 +16,7 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
rust: [stable, beta]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
@ -39,21 +39,6 @@ jobs:
|
|||
mkdir -p ~/.cargo
|
||||
echo '[target.x86_64-unknown-linux-musl]' >> ~/.cargo/config.toml
|
||||
echo 'linker = "x86_64-unknown-linux-musl-gcc"' >> ~/.cargo/config.toml
|
||||
- name: Install cross-compilation tools (Windows)
|
||||
if: matrix.os == 'windows-latest'
|
||||
shell: pwsh
|
||||
run: |
|
||||
# On Windows, we'll use rust-lld as the linker for musl targets
|
||||
rustup component add llvm-tools-preview
|
||||
# Find rust-lld location
|
||||
$rustc_sysroot = rustc --print sysroot
|
||||
$rust_lld = "$rustc_sysroot\lib\rustlib\x86_64-pc-windows-msvc\bin\rust-lld.exe"
|
||||
Write-Host "rust-lld location: $rust_lld"
|
||||
# Create cargo config directory
|
||||
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.cargo"
|
||||
# Create config file with full path to rust-lld
|
||||
Add-Content -Path "$env:USERPROFILE\.cargo\config.toml" -Value "[target.x86_64-unknown-linux-musl]"
|
||||
Add-Content -Path "$env:USERPROFILE\.cargo\config.toml" -Value "linker = `"$rust_lld`""
|
||||
- name: Set up Docker (macOS)
|
||||
if: matrix.os == 'macos-latest'
|
||||
uses: douglascamata/setup-docker-macos-action@v1-alpha
|
||||
|
|
@ -73,7 +58,6 @@ jobs:
|
|||
path: target
|
||||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Verify cross-compilation setup (Unix)
|
||||
if: matrix.os != 'windows-latest'
|
||||
run: |
|
||||
echo "Installed targets:"
|
||||
rustup target list --installed
|
||||
|
|
@ -88,26 +72,6 @@ jobs:
|
|||
which rust-lld || echo "rust-lld not found"
|
||||
echo "Cargo config:"
|
||||
cat ~/.cargo/config.toml || echo "No cargo config found"
|
||||
- name: Verify cross-compilation setup (Windows)
|
||||
if: matrix.os == 'windows-latest'
|
||||
shell: pwsh
|
||||
run: |
|
||||
Write-Host "Installed targets:"
|
||||
rustup target list --installed
|
||||
Write-Host "Cargo version:"
|
||||
cargo --version
|
||||
Write-Host "Rustc version:"
|
||||
rustc --version
|
||||
Write-Host "rust-lld location:"
|
||||
$rustc_sysroot = rustc --print sysroot
|
||||
$rust_lld = "$rustc_sysroot\lib\rustlib\x86_64-pc-windows-msvc\bin\rust-lld.exe"
|
||||
if (Test-Path $rust_lld) {
|
||||
Write-Host "$rust_lld exists"
|
||||
} else {
|
||||
Write-Host "$rust_lld not found"
|
||||
}
|
||||
Write-Host "Cargo config:"
|
||||
Get-Content "$env:USERPROFILE\.cargo\config.toml" -ErrorAction SilentlyContinue || Write-Host "No cargo config found"
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Run unit tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue