1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-08 06:45:32 +00:00

Merge pull request #30 from imjasonh/debug/cross-compilation-issues

Fix cross-compilation issues in CI
This commit is contained in:
Jason Hall 2025-06-08 21:03:14 -04:00 committed by GitHub
commit f8271d0381
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,11 +43,25 @@ jobs:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Setup cargo config for CI cross-compilation
run: |
mkdir -p .cargo
cat > .cargo/config.toml << 'EOF'
[target.x86_64-unknown-linux-musl]
linker = "musl-gcc"
[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-gnu-gcc"
EOF
- run: make verify-cross-compile
- run: make build
- run: make test
- run: make test-e2e
#- run: make run-built-image
# Only run cross-compilation integration test on x86_64 runners
- name: Run integration test (cross-compilation)
if: matrix.os == 'ubuntu-latest'
run: make run-built-image
fmt:
name: Rustfmt