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:
commit
f8271d0381
1 changed files with 15 additions and 1 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue