File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
packages/cubejs-backend-native Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 63
63
matrix :
64
64
node-version : [12, 14, 16, 17]
65
65
target : ["x86_64-unknown-linux-gnu", "aarch64-unknown-linux-gnu"]
66
+ include :
67
+ - target : aarch64-unknown-linux-gnu
68
+ # We use cross for this type, it's why we need to override package
69
+ package_target_arch : arm64
70
+ package_target_platform : linux
71
+ package_target_libc : glibc
66
72
fail-fast : false
67
73
container :
68
74
image : cubejs/rust-cross:${{ matrix.target }}-10052021
@@ -104,6 +110,9 @@ jobs:
104
110
- name : Build native
105
111
env :
106
112
CARGO_BUILD_TARGET : ${{ matrix.target }}
113
+ PACKAGE_TARGET_ARCH : ${{ matrix.package_target_arch }}
114
+ PACKAGE_TARGET_PLATFORM : ${{ matrix.package_target_platform }}
115
+ PACKAGE_TARGET_LIBC : ${{ matrix.package_target_libc }}
107
116
run : cd packages/cubejs-backend-native && npm run native:build-release
108
117
- name : Upload artifact
109
118
uses : nick-invision/retry@v2
Original file line number Diff line number Diff line change 16
16
"native:build-debug" : " npm run native:build --" ,
17
17
"native:build-release" : " npm run native:build -- --release" ,
18
18
"install" : " node-pre-gyp install || echo 'Your system is not supported by @cubejs-backend/native, some feature will be unavailable.'" ,
19
- "upload-binary" : " mkdir -p native && cp index.node native/index.node && node-pre-gyp package && node-pre-gyp-github publish" ,
19
+ "upload-binary" : " mkdir -p native && cp index.node native/index.node && node-pre-gyp package --target_arch=$PACKAGE_TARGET_ARCH --target_platform=$PACKAGE_TARGET_PLATFORM --target_libc=$PACKAGE_TARGET_LIBC && node-pre-gyp-github publish" ,
20
20
"test:unit" : " jest --forceExit test" ,
21
21
"test:cargo" : " cargo test"
22
22
},
You can’t perform that action at this time.
0 commit comments