@@ -198,7 +198,6 @@ jobs:
198198 target :
199199 - x86_64-unknown-linux-gnu
200200 - x86_64-unknown-linux-musl
201- - aarch64-unknown-linux-gnu
202201 include :
203202 # Please use minimal possible version of ubuntu, because it produces constraint on glibc
204203 - os : ubuntu-22.04
@@ -212,13 +211,6 @@ jobs:
212211 strip : true
213212 # cubestored: CantPackException: bad DT_HASH nbucket=0x344 len=0x1890
214213 compress : false
215- - os : ubuntu-22.04
216- target : aarch64-unknown-linux-gnu
217- executable_name : cubestored
218- # Unable to recognise the format of the input file `rust/cubestore/target/aarch64-unknown-linux-gnu/release/cubestored'
219- strip : false
220- # UPX is broken, issue https://github.com/cube-js/cube/issues/4474
221- compress : false
222214 fail-fast : false
223215 container :
224216 image : cubejs/rust-cross:${{ matrix.target }}-15082024
@@ -261,3 +253,52 @@ jobs:
261253 path : cubestore-archive/cubestored-${{ matrix.target }}.tar.gz
262254 name : cubestored-${{ matrix.target }}.tar.gz
263255 retention-days : 1
256+
257+ cubestore_linux_aarch64 :
258+ name : Build aarch64-unknown-linux-gnu
259+ runs-on : ubuntu-24.04-arm
260+ timeout-minutes : 90
261+ env :
262+ OPENSSL_STATIC : 1
263+ steps :
264+ - uses : actions/checkout@v4
265+ - name : Install dependencies
266+ run : |
267+ sudo apt-get update
268+ sudo apt-get install -y \
269+ build-essential \
270+ cmake \
271+ libssl-dev \
272+ libsasl2-dev \
273+ libclang-dev \
274+ clang \
275+ pkg-config
276+ - name : Setup Rust toolchain
277+ uses : actions-rust-lang/setup-rust-toolchain@v1
278+ with :
279+ toolchain : nightly-2025-08-01
280+ target : aarch64-unknown-linux-gnu
281+ rustflags : " "
282+ components : rustfmt
283+ - uses : Swatinem/rust-cache@v2
284+ with :
285+ workspaces : ./rust/cubestore -> target
286+ prefix-key : v0-rust-cubestore
287+ key : target-aarch64-unknown-linux-gnu-native
288+ - name : Build with Cargo
289+ run : |
290+ cd rust/cubestore && cargo build --release --target=aarch64-unknown-linux-gnu -p cubestore
291+ - name : Create folder for archive
292+ run : |
293+ mkdir cubestore-archive
294+ mkdir cubestore-archive/bin
295+ - name : Create archive for release
296+ run : |
297+ mv rust/cubestore/target/aarch64-unknown-linux-gnu/release/cubestored cubestore-archive/bin/cubestored
298+ cd cubestore-archive
299+ tar -cvzf cubestored-aarch64-unknown-linux-gnu.tar.gz ./*
300+ - uses : actions/upload-artifact@v4
301+ with :
302+ path : cubestore-archive/cubestored-aarch64-unknown-linux-gnu.tar.gz
303+ name : cubestored-aarch64-unknown-linux-gnu.tar.gz
304+ retention-days : 1
0 commit comments