Skip to content

Commit

Permalink
refactor: mv cmd/kcl-go to scripts/install-kcl-go (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
howieyuen committed Dec 13, 2022
1 parent ba2c0fd commit 7ceb57f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- run: make build-local-ubuntu-all
- run: echo "${PWD}/_build/bundles/kusion-ubuntu/kclvm/bin" >> $GITHUB_PATH
- run: which kclvm
- run: go run ./cmd/kcl-go kcl
- run: go run ./scripts/install-kcl-go kcl

- name: Running go tests with coverage
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- run: make build-local-ubuntu-all
- run: echo "${PWD}/_build/bundles/kusion-ubuntu/kclvm/bin" >> $GITHUB_PATH
- run: which kclvm
- run: go run ./cmd/kcl-go kcl
- run: go run ./scripts/install-kcl-go kcl

- run: go build ./...
- run: go vet ./...
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ build-local-darwin-all: build-local-darwin ## Build kusion & kcl tool chain for
# Build kcl-go
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-darwin/kclvm/bin/kcl-go \
./cmd/kcl-go
./scripts/install-kcl-go

# Build kcl-openapi
cd ./cmd/kcl-openapi && GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 \
Expand Down Expand Up @@ -161,7 +161,7 @@ build-local-darwin-arm64-all: build-local-darwin-arm64 ## Build kusion & kcl too
# Build kcl-go
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-darwin-arm64/kclvm/bin/kcl-go \
./cmd/kcl-go
./scripts/install-kcl-go

# Build kcl-openapi
cd ./cmd/kcl-openapi && GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 \
Expand Down Expand Up @@ -226,7 +226,7 @@ build-local-ubuntu-all: build-local-linux ## Build kusion & kcl tool chain for
# Build kcl-go
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-ubuntu/kclvm/bin/kcl-go \
./cmd/kcl-go
./scripts/install-kcl-go

# Build kcl-openapi
cd ./cmd/kcl-openapi && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 \
Expand Down Expand Up @@ -270,7 +270,7 @@ build-local-centos-all: build-local-linux ## Build kusion & kcl tool chain for
# Build kcl-go
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-centos/kclvm/bin/kcl-go \
./cmd/kcl-go
./scripts/install-kcl-go

# Build kcl-openapi
cd ./cmd/kcl-openapi && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 \
Expand Down Expand Up @@ -330,7 +330,7 @@ build-local-windows-all: build-local-windows ## Build kusion & kcl tool chain f
# Build kcl-go
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 \
go build -o ${PWD}/_build/bundles/kusion-windows/kclvm/kcl-go \
./cmd/kcl-go
./scripts/install-kcl-go

# Build kcl-openapi
cd ./cmd/kcl-openapi && GOOS=windows GOARCH=amd64 CGO_ENABLED=0 \
Expand Down
File renamed without changes.

0 comments on commit 7ceb57f

Please sign in to comment.