Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Nov 5, 2023
1 parent 4741ad1 commit 99ee658
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nu/moonbit.nu
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# TODO:
# [x] Install all moon* binaries
# [x] Support Windows, macOS, Linux
# [x] This script should run both in Github Runners and local machines
# Description: Scripts for setting up MoonBit environment

use common.nu [hr-line windows?]
Expand All @@ -12,6 +13,7 @@ const CLI_HOST = 'https://cli.moonbitlang.com'

const CLI_DOWNLOAD_PATH = {
Windows: 'windows',
Linux: 'ubuntu_x86',
Ubuntu: 'ubuntu_x86',
Darwin: 'macos_intel',
}
Expand All @@ -37,7 +39,10 @@ export def 'setup moonbit' [] {
echo (char nl)
echo $'Contents of ($MOONBIT_BIN_DIR):'; hr-line -b
echo (ls -l $MOONBIT_BIN_DIR)
echo $MOONBIT_BIN_DIR | save -a $env.GITHUB_PATH
print $nu.os-info
if ('GITHUB_PATH' in $env) {
echo $MOONBIT_BIN_DIR | save -a $env.GITHUB_PATH
}
}

alias main = setup moonbit

0 comments on commit 99ee658

Please sign in to comment.