@@ -10,16 +10,16 @@ const build = core.getInput("build").toUpperCase() === "TRUE";
10
10
const buildDir = path . join ( "/opt/" , target , variant ) ;
11
11
12
12
const tags = {
13
- "richfelker/musl-cross-make" : "heracles " ,
14
- "userdocs/qbt-musl-cross-make" : "heracles " ,
13
+ "richfelker/musl-cross-make" : "perseus " ,
14
+ "userdocs/qbt-musl-cross-make" : "perseus " ,
15
15
} ;
16
16
17
17
( async ( ) => {
18
18
try {
19
19
const url = `https://github.com/nginxui/musl-cross-compilers/releases/download/${ tags [ variant ] } /output-${ target } -${ variant . replace (
20
20
"/" ,
21
21
"_"
22
- ) } .tar.xz `;
22
+ ) } .tar.zst `;
23
23
24
24
let cachedPath ;
25
25
if ( build ) {
@@ -70,14 +70,14 @@ const tags = {
70
70
}
71
71
cachedPath = destDir ;
72
72
} else {
73
- cachedPath = tc . find ( "mcm" , `${ target } -${ variant } .tar.xz ` ) ;
73
+ cachedPath = tc . find ( "mcm" , `${ target } -${ variant } .tar.zst ` ) ;
74
74
}
75
75
if ( cachedPath ) {
76
76
console . log ( `Found installation at ${ cachedPath } ` ) ;
77
77
} else {
78
78
const toolchainPath = await tc . downloadTool ( url ) ;
79
79
const toolchainExtractedFolder = await tc . extractTar ( toolchainPath ) ;
80
- cachedPath = await tc . cacheDir ( toolchainExtractedFolder , "mcm" , `${ target } -${ variant } .tar.xz ` ) ;
80
+ cachedPath = await tc . cacheDir ( toolchainExtractedFolder , "mcm" , `${ target } -${ variant } .tar.zst ` ) ;
81
81
console . log ( `Installed at ${ cachedPath } ` ) ;
82
82
}
83
83
cachedPath = path . join ( cachedPath , "output" , "bin" ) ;
@@ -87,15 +87,11 @@ const tags = {
87
87
} catch ( e ) {
88
88
if ( build ) {
89
89
console . log ( "Build error occurred and uploading build directory as artifacts" ) ;
90
- await exec . exec ( "tar" , [ "-cJf" , "/opt/mcm.tar.xz" , buildDir ] , {
91
- env : {
92
- XZ_OPT : "-9T0"
93
- }
94
- } ) ;
90
+ await exec . exec ( "tar" , [ "-I" , "zstdmt" , "-cf" , "/opt/mcm.tar.zst" , buildDir ] ) ;
95
91
const artifact = require ( "@actions/artifact" ) ;
96
92
const artifactClient = artifact . create ( ) ;
97
93
const artifactName = `musl-cross-compiler-error-${ target } -${ variant . replace ( "/" , "_" ) } ` ;
98
- const files = [ "/opt/mcm.tar.xz " ] ;
94
+ const files = [ "/opt/mcm.tar.zst " ] ;
99
95
const rootDirectory = "/opt/" ;
100
96
const options = { } ;
101
97
await artifactClient . uploadArtifact ( artifactName , files , rootDirectory , options ) ;
0 commit comments