Update github's action to download the right deps archive.

This commit is contained in:
Matthieu Gautier 2024-04-08 14:48:39 +02:00
parent b880da6ca2
commit 0d27cbd8cf
3 changed files with 5 additions and 6 deletions

1
actions/dl_deps_archive/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules

View File

@ -30484,7 +30484,6 @@ function addLocalPath(inputPath) {
async function run() {
try {
const base_url = core.getInput("base_url");
const os_name = getInput("os_name", process.env["OS_NAME"]);
const target = core.getInput("target_platform");
const project = getInput(
"project",
@ -30501,11 +30500,11 @@ async function run() {
let archivePath;
try {
const archive_url = `${base_url}/dev_preview/${branch}/deps2_${os_name}_${target}_${project}.tar.xz`;
const archive_url = `${base_url}/dev_preview/${branch}/deps_${target}_${project}.tar.xz`;
process.stdout.write("Downloading " + archive_url + "\n");
archivePath = await tc.downloadTool(archive_url);
} catch (error) {
const archive_url = `${base_url}/deps2_${os_name}_${target}_${project}.tar.xz`;
const archive_url = `${base_url}/deps_${target}_${project}.tar.xz`;
process.stdout.write("Downloading " + archive_url + "\n");
archivePath = await tc.downloadTool(archive_url);
}

View File

@ -18,7 +18,6 @@ function addLocalPath(inputPath) {
async function run() {
try {
const base_url = core.getInput("base_url");
const os_name = getInput("os_name", process.env["OS_NAME"]);
const target = core.getInput("target_platform");
const project = getInput(
"project",
@ -35,11 +34,11 @@ async function run() {
let archivePath;
try {
const archive_url = `${base_url}/dev_preview/${branch}/deps2_${os_name}_${target}_${project}.tar.xz`;
const archive_url = `${base_url}/dev_preview/${branch}/deps_${target}_${project}.tar.xz`;
process.stdout.write("Downloading " + archive_url + "\n");
archivePath = await tc.downloadTool(archive_url);
} catch (error) {
const archive_url = `${base_url}/deps2_${os_name}_${target}_${project}.tar.xz`;
const archive_url = `${base_url}/deps_${target}_${project}.tar.xz`;
process.stdout.write("Downloading " + archive_url + "\n");
archivePath = await tc.downloadTool(archive_url);
}