Skip to content

Commit d714bb5

Browse files
committed
[Build] Build ARM64 for deb and rpm
Build ARM64 for deb with the following commands: yarn build --deb --skip-archives yarn build --deb --skip-archives --release Build ARM64 for rpm with the following commands: yarn build --rpm --skip-archives yarn build --rpm --skip-archives --release Issue partially resolved: opensearch-project#1259 Signed-off-by: Kawika Avilla <[email protected]>
1 parent 18f8f13 commit d714bb5

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

src/dev/build/tasks/os_packages/create_os_package_tasks.ts

+16-2
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,34 @@ export const CreateDebPackage: Task = {
3333
description: 'Creating deb package',
3434

3535
async run(config, log, build) {
36-
await runFpm(config, log, build, 'deb', [
36+
await runFpm(config, log, build, 'deb', 'x64', [
3737
'--architecture',
3838
'amd64',
3939
'--deb-priority',
4040
'optional',
4141
]);
42+
43+
await runFpm(config, log, build, 'deb', 'arm64', [
44+
'--architecture',
45+
'arm64',
46+
'--deb-priority',
47+
'optional',
48+
]);
4249
},
4350
};
4451

4552
export const CreateRpmPackage: Task = {
4653
description: 'Creating rpm package',
4754

4855
async run(config, log, build) {
49-
await runFpm(config, log, build, 'rpm', ['--architecture', 'x64', '--rpm-os', 'linux']);
56+
await runFpm(config, log, build, 'rpm', 'x64', ['--architecture', 'x64', '--rpm-os', 'linux']);
57+
58+
await runFpm(config, log, build, 'rpm', 'arm64', [
59+
'--architecture',
60+
'arm64',
61+
'--rpm-os',
62+
'linux',
63+
]);
5064
},
5165
};
5266

src/dev/build/tasks/os_packages/run_fpm.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ export async function runFpm(
3636
log: ToolingLog,
3737
build: Build,
3838
type: 'rpm' | 'deb',
39+
arch: 'x64' | 'arm64',
3940
pkgSpecificFlags: string[]
4041
) {
41-
const linux = config.getPlatform('linux', 'x64');
42+
const linux = config.getPlatform('linux', arch);
4243
const version = config.getBuildVersion();
4344

4445
const resolveWithTrailingSlash = (...paths: string[]) => `${resolve(...paths)}/`;

0 commit comments

Comments
 (0)