Commit graph

83 commits

Author SHA1 Message Date
Yuri Norwood
147fac8504
Remove redundant binfile variable
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 16:41:58 +13:00
Yuri Norwood
3988f359dc
Extract archive directly into workspace
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 16:35:45 +13:00
Yuri Norwood
7becac8391
Specify fs.constants.COPYFILE_EXCL copy mode
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 15:51:11 +13:00
Yuri Norwood
5b5c8badb7
Remove explicit path separator
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 15:43:26 +13:00
Yuri Norwood
400e9a35b6
Use binfile in final success log message
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 15:32:12 +13:00
Yuri Norwood
71f3c80d96
List installed files
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 14:59:10 +13:00
Yuri Norwood
0b2515da35
Copy binfile instead of renaming to prevent cross-device linking
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 14:56:06 +13:00
Yuri Norwood
a29a69bbe7
Correct interpolation
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 14:51:58 +13:00
Yuri Norwood
08676f6775
Use system defined target file
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 14:41:50 +13:00
Yuri Norwood
b1d9a32973
Add callback to file move
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 14:29:34 +13:00
Yuri Norwood
074752d070
Move extracted binary manually
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 14:01:02 +13:00
Yuri Norwood
ae6e2160d9
Specify target directory before target files
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 13:57:50 +13:00
Yuri Norwood
a08fe68d95
Quote parameters to tar command
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 13:43:54 +13:00
Yuri Norwood
191181f3f2
Rather than changing directories, specify target to tar command
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 13:41:05 +13:00
Yuri Norwood
f6d688bee8
List files in current directory
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 13:23:19 +13:00
Yuri Norwood
1de8b12016
List files in temporary directory
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 13:16:07 +13:00
Yuri Norwood
96e9daf6e2
Expand debugger
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 13:11:14 +13:00
Yuri Norwood
684d72ee8b
List files extracted to bin path
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 12:55:26 +13:00
Yuri Norwood
f66aac333e
Create all path components
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 12:33:55 +13:00
Yuri Norwood
60fbee781d
Fix mkdir invocation
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 12:30:19 +13:00
Yuri Norwood
ac4055ad14
Attempt to create custom binpath in windows
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 12:27:28 +13:00
Yuri Norwood
5e50217ad5
Don't force the directory to exist/into PATH
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 12:22:16 +13:00
Yuri Norwood
889a954312
Only manually add the binpath on windows
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 12:11:06 +13:00
Yuri Norwood
02f2506935
Manually setup binpath and add it to system path
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:53:42 +13:00
Yuri Norwood
9a4f739c73
Attempt to use pre-existing lib path instead of creating new one
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:30:50 +13:00
Yuri Norwood
f8b937725a
Use core.addPath to add binpath to job's PATH
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:27:26 +13:00
Yuri Norwood
8f54926f6c
Attempt to prevent existing directories causing problems
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:23:44 +13:00
Yuri Norwood
41182fa2c4
Ensure bin path exists
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:19:57 +13:00
Yuri Norwood
9504821a22
Quote bin path when cding into it to avoid shell globbing
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:15:34 +13:00
Yuri Norwood
939c90d635
Explicitly echo bin path into GITHUB_PATH
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:12:31 +13:00
Yuri Norwood
c5d78e059f
Fix missing path separators
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:08:30 +13:00
Yuri Norwood
52578ee9f6
Add documentation comments
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:07:41 +13:00
Yuri Norwood
12174122f2
Remove redundant pathsep variable
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:01:48 +13:00
Yuri Norwood
ea9ac7fd9e
Fix os check
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:01:04 +13:00
Yuri Norwood
7b07e9efdf
Remove debuggers
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:00:27 +13:00
Yuri Norwood
1cc578bf16
Add install directory to path
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:59:29 +13:00
Yuri Norwood
b119af5335
Use program files as binpath
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:51:58 +13:00
Yuri Norwood
416e06d250
Use console debug instead of log
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:48:31 +13:00
Yuri Norwood
479a5ebf04
Add debugger lines for executed commands
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:46:40 +13:00
Yuri Norwood
23017b3af3
Add debugger lines
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:42:57 +13:00
Yuri Norwood
73534fb549
Fix whitespace
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:41:29 +13:00
Yuri Norwood
f365aa2590
Use more meaningful name for binpath
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:40:37 +13:00
Yuri Norwood
ed405a8b57
Fix escape character
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:39:04 +13:00
Yuri Norwood
a7173064d8
Simplify archive path
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:38:43 +13:00
Yuri Norwood
bb23b49e23
Fix windows path separator problems
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:35:28 +13:00
Yuri Norwood
645f9ad30b
Replace GOPATH with system dependent lib path
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:26:17 +13:00
Yuri Norwood
ae2240dd72
Remove GOOS detection as GOOS not in environment
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:23:02 +13:00
Yuri Norwood
5f6ce583a3
Properly log GOOS detection
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:19:00 +13:00
Yuri Norwood
56245aa167
Extract binary directly to GOPATH rather than hardcoded lib path
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:15:13 +13:00
Yuri Norwood
6f8a8b87eb
USe GOOs
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:08:50 +13:00