-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.actions
19 lines (16 loc) · 972 Bytes
/
.actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Loads env from .env.local
@env = .env.local
# Testing commands
hello_world = echo "Hello World"
hello_mom = echo "Hello Mom, i love you!" {{ depends_on = "hello_world" }}
message = echo 'This is a message from env: {MESSAGE}' ## Will be parsed and set when you add the @env
# Build commands, will be used with github actions
build_win-x64 = GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o build/actionfile-win-x64.exe ## A comment here
build_linux-x64 = GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o build/actionfile-linux-x64
build_linux-arm64 = GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o build/actionfile-linux-arm64
build_mac-x64 = GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o build/actionfile-mac-x64
build_mac-arm64 = GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o build/actionfile-mac-arm64
# Docs
#docs_serve = bunx vitepress dev docs
#docs_build = bunx vitepress build docs
#docs_preview = bunx vitepress preview docs