File tree Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1
1
## Action to setup Calcit
2
2
3
3
``` yml
4
- TODO
4
+ -
uses :
calcit-lang/[email protected]
5
+ with :
6
+ version : " 0.8.38"
5
7
` ` `
8
+
9
+ Find latest version on https://github.com/calcit-lang/calcit/releases .
Original file line number Diff line number Diff line change 9
9
runs :
10
10
using : node20
11
11
main : dist/index.js
12
+
13
+ icon : arrow-up-circle
14
+ branding :
15
+ icon : cloud-snow
16
+ color : # ccf
Original file line number Diff line number Diff line change @@ -11,10 +11,11 @@ let getCapsDownloadUrl = (version) => {
11
11
return `https://github.com/calcit-lang/calcit/releases/download/${ version } /caps` ;
12
12
} ;
13
13
14
+ const version = core . getInput ( "version" ) ;
15
+
14
16
async function setup ( ) {
15
17
try {
16
18
// Get version of tool to be installed
17
- const version = core . getInput ( "version" ) ;
18
19
19
20
const pathToCr = await tc . downloadTool (
20
21
getCrDownloadUrl ( version ) ,
@@ -25,6 +26,9 @@ async function setup() {
25
26
"/home/runner/bin/caps"
26
27
) ;
27
28
29
+ // TODO cache
30
+ // https://github.com/actions/toolkit/tree/main/packages/tool-cache#cache
31
+
28
32
// Expose the tool by adding it to the PATH
29
33
fs . chmodSync ( pathToCr , 0o755 ) ;
30
34
core . addPath ( path . dirname ( pathToCr ) ) ;
@@ -42,6 +46,6 @@ async function setup() {
42
46
module . exports = setup ;
43
47
44
48
if ( require . main === module ) {
45
- console . log ( "Running setup" ) ;
49
+ console . log ( `Setting up Calcit ${ version } ` ) ;
46
50
setup ( ) ;
47
51
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " setup-cr" ,
3
- "version" : " 0.0.1 " ,
3
+ "version" : " 0.0.2 " ,
4
4
"description" : " Setup Calcit runtime" ,
5
5
"main" : " ./index.js" ,
6
6
"repository" :
" [email protected] :calcit-lang/setup-cr.git" ,
You can’t perform that action at this time.
0 commit comments