Skip to content

Commit

Permalink
Create go.yml (#3)
Browse files Browse the repository at this point in the history
* Create go.yml

* install tools first
  • Loading branch information
ansel1 authored Aug 7, 2020
1 parent 9206261 commit 695dd3c
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Go

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Debug
run: |
pwd
echo ${HOME}
echo ${GITHUB_WORKSPACE}
echo ${GOPATH}
echo ${GOROOT}
env:
GOPATH: /home/runner/work/go

- name: Build
run: |
mkdir -p $GOPATH/bin
echo 'export PATH=$PATH:$GOPATH/bin' > runme.sh
echo 'make tools all' >> runme.sh
chmod +x runme.sh
./runme.sh
env:
GOPATH: /home/runner/work/go

0 comments on commit 695dd3c

Please sign in to comment.