From f61caa214c9839739a727618c8965ae7282c2aa3 Mon Sep 17 00:00:00 2001 From: messense Date: Tue, 25 Jun 2024 18:45:57 +0800 Subject: [PATCH] Ignore cffi installation error Closes #275 --- dist/index.js | 4 +++- src/index.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index d272f1d..a49ff11 100644 --- a/dist/index.js +++ b/dist/index.js @@ -12037,7 +12037,9 @@ async function hostBuild(maturinRelease, args) { core.info(`Installing 'maturin' from tag '${maturinRelease}'`); const maturinPath = await installMaturin(maturinRelease); await exec.exec(maturinPath, ['--version'], { ignoreReturnCode: true }); - await exec.exec('python3', ['-m', 'pip', 'install', 'cffi']); + await exec.exec('python3', ['-m', 'pip', 'install', 'cffi'], { + ignoreReturnCode: true + }); if (IS_LINUX) { await exec.exec('python3', ['-m', 'pip', 'install', 'patchelf']); } diff --git a/src/index.ts b/src/index.ts index eb69db0..a17816b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -878,7 +878,9 @@ async function hostBuild( core.info(`Installing 'maturin' from tag '${maturinRelease}'`) const maturinPath = await installMaturin(maturinRelease) await exec.exec(maturinPath, ['--version'], {ignoreReturnCode: true}) - await exec.exec('python3', ['-m', 'pip', 'install', 'cffi']) + await exec.exec('python3', ['-m', 'pip', 'install', 'cffi'], { + ignoreReturnCode: true + }) if (IS_LINUX) { await exec.exec('python3', ['-m', 'pip', 'install', 'patchelf']) }