1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-10-31 16:27:18 -04:00
OpenDiablo2/.github/workflows/go.yml

33 lines
770 B
YAML
Raw Normal View History

2019-11-13 08:09:24 -05:00
name: Pull Request Checker
2019-11-13 08:08:39 -05:00
on:
pull_request:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
2019-11-13 08:32:08 -05:00
- name: Install dependencies
run: sudo apt-get install build-essential libx11-dev mesa-common-dev libglfw3-dev libgles2-mesa-dev libasound2-dev
2019-11-13 08:08:39 -05:00
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: go build -v .