@@ -180750,16 +180750,16 @@ function run(name, command, args) {
180750
180750
function runEsyCommand(name, args) {
180751
180751
return run(name, "esy", manifestKey ? [`@${manifestKey}`, ...args] : args);
180752
180752
}
180753
+ const index_platform = external_os_.platform();
180754
+ const arch = external_os_.arch();
180753
180755
function main() {
180754
180756
return __awaiter(this, void 0, void 0, function* () {
180755
180757
try {
180756
180758
const workingDirectory = core.getInput("working-directory") || process.cwd();
180757
180759
external_fs_.statSync(workingDirectory);
180758
180760
process.chdir(workingDirectory);
180759
- const platform = external_os_.platform();
180760
- const arch = external_os_.arch();
180761
180761
const installPath = ["~/.esy/source"];
180762
- const installKey = `source-${platform }-${arch}-${sourceCacheKey}`;
180762
+ const installKey = `source-${index_platform }-${arch}-${sourceCacheKey}`;
180763
180763
core.startGroup("Restoring install cache");
180764
180764
const installCacheKey = yield cache.restoreCache(installPath, installKey, []);
180765
180765
if (installCacheKey) {
@@ -180776,8 +180776,8 @@ function main() {
180776
180776
.sort()
180777
180777
.pop();
180778
180778
const depsPath = [external_path_.join(ESY_FOLDER, esy3, "i")];
180779
- const buildKey = `build-${platform }-${arch}-${cacheKey}`;
180780
- const restoreKeys = [`build-${platform }-${arch}-`, `build-`];
180779
+ const buildKey = `build-${index_platform }-${arch}-${cacheKey}`;
180780
+ const restoreKeys = [`build-${index_platform }-${arch}-`, `build-`];
180781
180781
core.startGroup("Restoring build cache");
180782
180782
const buildCacheKey = yield cache.restoreCache(depsPath, buildKey, restoreKeys);
180783
180783
if (buildCacheKey) {
@@ -180829,7 +180829,9 @@ function prepareNPMArtifacts() {
180829
180829
let tarFile = `npm-tarball.tgz`;
180830
180830
yield compress("_release", tarFile);
180831
180831
const context = github.context;
180832
- const { id, size } = yield artifact.uploadArtifact(`npm-${context.job.replace(" ", "_")}`, [tarFile], process.env.GITHUB_WORKSPACE, {
180832
+ const artifactName = `npm-${context.job.replace(" ", "_")}-${index_platform}-${arch}-${new Date().getTime()}`;
180833
+ console.log("Artifact name: ", artifactName);
180834
+ const { id, size } = yield artifact.uploadArtifact(artifactName, [tarFile], process.env.GITHUB_WORKSPACE, {
180833
180835
// The level of compression for Zlib to be applied to the artifact archive.
180834
180836
// - 0: No compression
180835
180837
// - 1: Best speed
0 commit comments