diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81ba722..4b8ab7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,6 +47,33 @@ jobs: - run: make build - run: make test - run: make test-e2e + #- run: make run-built-image + + integration: + name: Integration Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # master + with: + toolchain: stable + targets: x86_64-unknown-linux-musl,aarch64-unknown-linux-musl + - name: Install cross-compilation tools + run: | + sudo apt-get update + sudo apt-get install -y musl-tools gcc-aarch64-linux-gnu + - name: Setup cargo config for CI cross-compilation + run: | + mkdir -p .cargo + cat > .cargo/config.toml << 'EOF' + [target.x86_64-unknown-linux-musl] + linker = "x86_64-linux-musl-gcc" + + [target.aarch64-unknown-linux-musl] + linker = "aarch64-linux-gnu-gcc" + EOF + - run: make verify-cross-compile + - run: make build - run: make run-built-image fmt: