ci: fix arm arch config for sysroot

This commit is contained in:
deepak1556
2022-08-02 13:20:41 +09:00
parent b7e713947e
commit 820306c524
2 changed files with 4 additions and 2 deletions

View File

@@ -37,7 +37,8 @@ async function getSysroot(arch) {
throw new Error('Cannot retrieve sysroots.json. Stderr:\n' + result.stderr);
}
const sysrootInfo = require(sysrootDictLocation);
const sysrootDict = sysrootInfo[`bullseye_${arch}`];
const sysrootArch = arch === 'armhf' ? 'bullseye_arm' : `bullseye_${arch}`;
const sysrootDict = sysrootInfo[sysrootArch];
const tarballFilename = sysrootDict['Tarball'];
const tarballSha = sysrootDict['Sha1Sum'];
const sysroot = path.join((0, os_1.tmpdir)(), sysrootDict['SysrootDir']);