mirror of
https://github.com/audacity/audacity-actions.git
synced 2025-12-10 03:56:07 -06:00
Adds 'offline' conan to PATH
This commit is contained in:
parent
92032a4edd
commit
3a66549164
4
dist/generate_offline_dependencies/index.js
vendored
4
dist/generate_offline_dependencies/index.js
vendored
File diff suppressed because one or more lines are too long
@ -10,7 +10,7 @@ const generator = core.getInput('generator') || 'Unix Makefiles';
|
||||
const buildType = core.getInput('build_type') || 'Release';
|
||||
|
||||
async function run() {
|
||||
await offlineDependencies.prepareEnvironment(core.getMultilineInput('additional_python_packages'));
|
||||
await offlineDependencies.prepareEnvironment();
|
||||
|
||||
const tempPath = path.join(workspaceDir, '.offline', 'temp');
|
||||
|
||||
|
||||
@ -8,6 +8,8 @@ const path = require('path');
|
||||
const helpers = require('../lib/helpers.js');
|
||||
|
||||
const offlineCacheLocation = path.join(workspaceDir, '.offline');
|
||||
const bin_path = path.join(offlineCacheLocation, 'bin');
|
||||
|
||||
const conanCacheLocation = path.join(offlineCacheLocation, 'conan');
|
||||
const conanDownloadCacheLocation = path.join(conanCacheLocation, 'download_cache');
|
||||
|
||||
@ -15,8 +17,6 @@ const conanDownloadCacheLocation = path.join(conanCacheLocation, 'download_cache
|
||||
async function downloadConan(version) {
|
||||
const cached_path = await toolCache.downloadTool(`https://github.com/audacity/conan-appimage/releases/download/v${version}/conan-${version}-x86_64.AppImage`)
|
||||
|
||||
const bin_path = path.join(offlineCacheLocation, 'bin');
|
||||
|
||||
if (!fs.existsSync(bin_path)) {
|
||||
fs.mkdirSync(bin_path, { recursive: true });
|
||||
}
|
||||
@ -34,6 +34,7 @@ async function prepareEnvironment() {
|
||||
conan = await downloadConan('1.54.0');
|
||||
|
||||
core.exportVariable('CONAN_USER_HOME', conanCacheLocation);
|
||||
core.addPath(bin_path);
|
||||
|
||||
await helpers.execWithLog(conan, [
|
||||
'config', 'init'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user