mirror of
https://github.com/audacity/audacity-actions.git
synced 2025-12-10 03:56:07 -06:00
Do not fail if conan remote is already present
This commit is contained in:
parent
91c5df95c0
commit
2cdecf548e
2
dist/configure/index.js
vendored
2
dist/configure/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/update_recipes/index.js
vendored
2
dist/update_recipes/index.js
vendored
File diff suppressed because one or more lines are too long
@ -31,7 +31,7 @@ async function getCompilerVersion(generator) {
|
||||
async function getConanCacheKeys(generator) {
|
||||
const depsFile = path.join(workspaceDir, 'cmake-proxies/CMakeLists.txt');
|
||||
const depsMD5 = helpers.getMD5(depsFile);
|
||||
|
||||
|
||||
const conanVersion = await getConanVersion();
|
||||
|
||||
const conanCacheKeyShort = [
|
||||
@ -66,8 +66,11 @@ async function uploadBinaries() {
|
||||
const remote = process.env['CONAN_BINARIES_REMOTE'];
|
||||
|
||||
if (remote) {
|
||||
await helpers.execWithLog(`conan remote add audacity-binaries-upload ${remote} true --force`);
|
||||
await helpers.execWithLog(`conan upload "*" -r audacity-binaries-upload -c --all`);
|
||||
try {
|
||||
await helpers.execWithLog(`conan remote add audacity-binaries-upload ${remote} true --force`);
|
||||
} finally {
|
||||
await helpers.execWithLog(`conan upload "*" -r audacity-binaries-upload -c --all`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user