File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const inputVersion = const_1.core.getInput('version', { required: false });
16
16
let inputTag = const_1 . core . getInput ( 'tag' , { required : true } ) ;
17
17
function get_slim ( ) {
18
18
return __awaiter ( this , void 0 , void 0 , function * ( ) {
19
- let DIST = '' ;
19
+ let DIST = 'dist_ ' ;
20
20
let EXT = '' ;
21
21
let FILENAME = '' ;
22
22
let KERNEL = '' ;
@@ -60,33 +60,33 @@ function get_slim() {
60
60
if ( KERNEL === 'linux' ) {
61
61
EXT = 'tar.gz' ;
62
62
if ( MACHINE === 'x64' ) {
63
- DIST = 'linux' ;
63
+ DIST + = 'linux' ;
64
64
}
65
65
else if ( MACHINE === 'arm' ) {
66
- DIST = 'linux_arm' ;
66
+ DIST + = 'linux_arm' ;
67
67
}
68
68
else if ( MACHINE === 'arm64' ) {
69
- DIST = 'linux_arm64' ;
69
+ DIST + = 'linux_arm64' ;
70
70
}
71
71
}
72
72
else if ( KERNEL === 'darwin' ) {
73
73
EXT = 'zip' ;
74
74
if ( MACHINE === 'x64' ) {
75
- DIST = 'mac' ;
75
+ DIST + = 'mac' ;
76
76
}
77
77
else if ( MACHINE === 'arm64' ) {
78
- DIST = 'mac_m1' ;
78
+ DIST + = 'mac_m1' ;
79
79
}
80
80
}
81
81
else {
82
82
throw new Error ( `${ KERNEL } is not a supported platform.` ) ;
83
83
}
84
84
// Was a known distribution detected?
85
- if ( ! DIST ) {
85
+ if ( DIST == 'dist_' ) {
86
86
throw new Error ( `${ MACHINE } is not a supported architecture.` ) ;
87
87
}
88
88
// Derive the filename
89
- FILENAME = `dist_ ${ DIST } .${ EXT } ` ;
89
+ FILENAME = `${ DIST } .${ EXT } ` ;
90
90
URL = `https://github.com/slimtoolkit/slim/releases/download/${ VER } /${ FILENAME } ` ;
91
91
const_1 . core . debug ( `Checking cache for slim...` ) ;
92
92
let slimPath = const_1 . tc . find ( 'slim' , VER , MACHINE ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const inputVersion = core.getInput('version', {required: false});
10
10
let inputTag = core . getInput ( 'tag' , { required : true } ) ;
11
11
12
12
async function get_slim ( ) {
13
- let DIST = '' ;
13
+ let DIST = 'dist_ ' ;
14
14
let EXT = '' ;
15
15
let FILENAME = '' ;
16
16
let KERNEL = '' ;
@@ -56,30 +56,30 @@ async function get_slim() {
56
56
if ( KERNEL === 'linux' ) {
57
57
EXT = 'tar.gz' ;
58
58
if ( MACHINE === 'x64' ) {
59
- DIST = 'linux' ;
59
+ DIST + = 'linux' ;
60
60
} else if ( MACHINE === 'arm' ) {
61
- DIST = 'linux_arm' ;
61
+ DIST + = 'linux_arm' ;
62
62
} else if ( MACHINE === 'arm64' ) {
63
- DIST = 'linux_arm64' ;
63
+ DIST + = 'linux_arm64' ;
64
64
}
65
65
} else if ( KERNEL === 'darwin' ) {
66
66
EXT = 'zip' ;
67
67
if ( MACHINE === 'x64' ) {
68
- DIST = 'mac' ;
68
+ DIST + = 'mac' ;
69
69
} else if ( MACHINE === 'arm64' ) {
70
- DIST = 'mac_m1' ;
70
+ DIST + = 'mac_m1' ;
71
71
}
72
72
} else {
73
73
throw new Error ( `${ KERNEL } is not a supported platform.` ) ;
74
74
}
75
75
76
76
// Was a known distribution detected?
77
- if ( ! DIST ) {
77
+ if ( DIST == 'dist_' ) {
78
78
throw new Error ( `${ MACHINE } is not a supported architecture.` ) ;
79
79
}
80
80
81
81
// Derive the filename
82
- FILENAME = `dist_ ${ DIST } .${ EXT } ` ;
82
+ FILENAME = `${ DIST } .${ EXT } ` ;
83
83
URL = `https://github.com/slimtoolkit/slim/releases/download/${ VER } /${ FILENAME } ` ;
84
84
85
85
core . debug ( `Checking cache for slim...` )
You can’t perform that action at this time.
0 commit comments