Skip to content

Commit

Permalink
Ignore cffi installation error
Browse files Browse the repository at this point in the history
Closes #275
  • Loading branch information
messense committed Jun 25, 2024
1 parent 5a108ed commit f61caa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
}
Expand Down

0 comments on commit f61caa2

Please sign in to comment.