Skip to content

Commit

Permalink
github actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
ansel1 committed Mar 3, 2021
1 parent c1d5da6 commit 449bfc9
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 12 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build

env:
GOPATH: /home/runner/work/go

on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # weekly

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.15', '1.16']
name: Build with go version ${{ matrix.go }}

steps:
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v2
- name: Build
run: |
export PATH=$PATH:$GOPATH/bin
make tools all
buildold:
env:
GOPATH: ${{ github.workspace }}
GO111MODULE: off
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.12' ]
name: Build with old go version ${{ matrix.go }}, no modules
steps:
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Build
run: |
export PATH=$PATH:$GOPATH/bin
go get ./...
go build ./...
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

0 comments on commit 449bfc9

Please sign in to comment.