From ce787925be6aa24494bf2ed8b2015d4282df3cc4 Mon Sep 17 00:00:00 2001 From: Jordan Whited Date: Wed, 25 Nov 2020 16:33:25 -0800 Subject: [PATCH] add build workflow --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..13a31c1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: build +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] +jobs: + build: + strategy: + matrix: + go-version: [1.14.x, 1.15.x] + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v2 + - name: Build coredns + run: go build cmd/coredns/main.go + - name: Build wgsd-client + run: go build cmd/wgsd-client/main.go