|
94 | 94 | steps: |
95 | 95 | - uses: actions/checkout@v4 |
96 | 96 |
|
| 97 | + - name: Set up Docker Buildx |
| 98 | + if: matrix.use_cross |
| 99 | + uses: docker/setup-buildx-action@v3 |
| 100 | + |
97 | 101 | - name: Set up QEMU for cross-arch builds |
98 | 102 | if: matrix.use_cross |
99 | 103 | uses: docker/setup-qemu-action@v3 |
@@ -139,36 +143,6 @@ jobs: |
139 | 143 | if: matrix.use_cross |
140 | 144 | run: cargo install cross --git https://github.com/cross-rs/cross |
141 | 145 |
|
142 | | - - name: Create Cross.toml for aarch64 Kafka build |
143 | | - if: matrix.use_cross && matrix.target == 'aarch64-unknown-linux-gnu' |
144 | | - run: | |
145 | | - cat > Cross.toml << 'EOF' |
146 | | - [target.aarch64-unknown-linux-gnu] |
147 | | - pre-build = [ |
148 | | - "dpkg --add-architecture arm64", |
149 | | - "sed -i 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list", |
150 | | - "echo 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main restricted universe multiverse' >> /etc/apt/sources.list", |
151 | | - "echo 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted universe multiverse' >> /etc/apt/sources.list", |
152 | | - "apt-get update || true", |
153 | | - "apt-get install -y pkg-config:arm64 || true", |
154 | | - "apt-get install -y zlib1g-dev:arm64 || true", |
155 | | - "apt-get install -y libssl-dev:arm64 || true", |
156 | | - "apt-get install -y libsasl2-dev:arm64 || true", |
157 | | - "apt-get install -y libzstd-dev:arm64 || true", |
158 | | - "apt-get install -y liblz4-dev:arm64 || true", |
159 | | - ] |
160 | | - |
161 | | - [build.env] |
162 | | - passthrough = [ |
163 | | - "LIBRDKAFKA_SSL_VENDORED", |
164 | | - "PKG_CONFIG_ALLOW_CROSS", |
165 | | - ] |
166 | | - volumes = [ |
167 | | - "/usr/lib/aarch64-linux-gnu:/usr/lib/aarch64-linux-gnu", |
168 | | - ] |
169 | | - EOF |
170 | | - cat Cross.toml |
171 | | - |
172 | 146 | - name: Cache dependencies |
173 | 147 | uses: actions/cache@v4 |
174 | 148 | with: |
|
0 commit comments