You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
646 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. name: Go
  2. on:
  3. push:
  4. branches: [ action-ci ]
  5. jobs:
  6. build:
  7. name: Build
  8. runs-on: VM_0_11_centos
  9. steps:
  10. - name: Set up Go 1.13
  11. uses: actions/setup-go@v1
  12. with:
  13. go-version: 1.13
  14. id: go
  15. - name: Check out code into the Go module directory
  16. uses: actions/checkout@v2
  17. - name: Get dependencies
  18. run: |
  19. go get -v -t -d ./...
  20. if [ -f Gopkg.toml ]; then
  21. curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
  22. dep ensure
  23. fi
  24. - name: Build
  25. run: |
  26. pwd
  27. ls -la
  28. cd server
  29. go build -v .