Skip to content

Commit

Permalink
ci/cd: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
semyon-dev committed Jul 26, 2024
1 parent 29de91e commit 16fca30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,19 @@ jobs:
with:
go-version: '1.22.5'

- name: protobuff install
- name: install protobuf
run: |
sudo apt update
sudo apt install protobuf-compiler
- name: go_ins_1
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: install dependencies
run: ./scripts/install_deps

- name: go_ins_2
run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
- name: build linux
run: ./scripts/build linux amd64 dev

- name: generate
run: go generate ./...
- name: build darwin
run: ./scripts/build darwin amd64 dev

- name: check version
run: go version

- name: check folder
run: ls

- name: do build
run: go build snetd/main.go
- name: build windows
run: ./scripts/build windows amd64 dev
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
go-version: '1.22.5'

- name: protobuff install
- name: install protobuf
run: |
sudo apt update
sudo apt install protobuf-compiler
Expand Down

0 comments on commit 16fca30

Please sign in to comment.