Skip to content

Commit

Permalink
Merge pull request #155 from ByteStorage/sjc-dev
Browse files Browse the repository at this point in the history
feat:refactor build.sh(#154) and fix bug with ci(#155)
  • Loading branch information
sjcsjc123 authored Jul 6, 2023
2 parents 6a87c88 + 5ec1ead commit 96e185c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ name: Go

on:
push:
branches: [ "master" ]
branches:
- "*"
pull_request:
branches: [ "master" ]
branches:
- "*"

jobs:

build:
runs-on: ubuntu-latest
strategy:
Expand Down
10 changes: 7 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash
# shellcheck disable=SC2164
cd cmd/cli
go build flydb.go
./flydb
go build -o ./bin/flydb-server cmd/server/cli/flydb-server.go
go build -o ./bin/flydb-client cmd/client/cli/flydb-client.go
echo "build success"

echo "Now you can run the follow command:
start server: ./bin/flydb-server
start client: ./bin/flydb-client 127.0.0.1:8999"

0 comments on commit 96e185c

Please sign in to comment.