Commit graph

93 commits

Author SHA1 Message Date
Yuri Norwood
5945f71bd9
List files recursively and verbosely
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 12:05:05 +13:00
Yuri Norwood
69a133df8f
List install target's contents
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 12:02:17 +13:00
Yuri Norwood
86eb6b7310
Add debuggers for userprofile
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:58:35 +13:00
Yuri Norwood
d527bffb65
List PATH targets for debugging
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:54:39 +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
73fe36ff71
Remove debugger
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:51:37 +13:00
Yuri Norwood
a493145b21
List System32 files to look for gotestfmt binary
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:48:02 +13:00
Yuri Norwood
9886b87b4f
Add debugger for PATH variable
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 11:40:46 +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
Yuri Norwood
d9e1a5f877
Restore original console loggers
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 10:00:21 +13:00
Yuri Norwood
6e451eb607
Attempt debugging missing download
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:58:21 +13:00
Yuri Norwood
05082d6398
Correct all references to hardcoded filename
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:55:50 +13:00
Yuri Norwood
2725d26cb6
Fix missing $
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:53:56 +13:00
Yuri Norwood
580790fbab
Use environment defined temp path
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:50:30 +13:00
Yuri Norwood
f183840554
Refactor download stage
* Separate logical steps
* Use string interpolation for curl command

Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:45:46 +13:00
Yuri Norwood
fbe5303dd3
Prevent curl from assuming tar.gz format
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:41:38 +13:00
Yuri Norwood
5ffc60a1a3
Make postfix constant
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:39:29 +13:00
Yuri Norwood
026aad37c7
Correctly avoid assignment to const variable
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:38:48 +13:00
Yuri Norwood
74659dabed
Separate extension detection from postfix
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:33:52 +13:00
Yuri Norwood
beae072e4d
Inline postfix declaration
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:29:09 +13:00
Yuri Norwood
44e82aa5b0
Run self test on all push events (for testing)
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:26:28 +13:00
Yuri Norwood
b8991edc05
Add selftest on windows
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:25:55 +13:00
Yuri Norwood
b7b7b7013a
Remove unix specific logging and determine .zip extension on windows
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:24:59 +13:00
Yuri Norwood
c936969241
Prevent darwin from being reported as Linux
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:22:31 +13:00
Yuri Norwood
7dc6b91140
Correctly identify windows os
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
2022-11-07 09:07:51 +13:00