Browse Source

Multi platform (#54)

* Test go.yaml

* Update go.yml

* Update go.yml

* Update go.yml
pull/55/head
Gregory Rudolph 4 years ago committed by GitHub
parent
commit
f222464849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      .github/workflows/go.yml

20
.github/workflows/go.yml

@ -1,10 +1,12 @@ @@ -1,10 +1,12 @@
name: Go
on: [push]
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
name: Build
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform }}
steps:
- name: Set up Go 1.13
@ -20,15 +22,19 @@ jobs: @@ -20,15 +22,19 @@ jobs:
run: |
go get -v -t -d ./...
go get github.com/magefile/mage
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: go run build.go buildbeta
- name: Upload Artifact
if: matrix.platform != 'windows-latest'
uses: actions/upload-artifact@v1.0.0
with:
name: kbtui-ubuntu-latest-buildbeta
name: kbtui-${{ matrix.platform }}-buildbeta
path: kbtui
- name: Upload Artifact
if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v1.0.0
with:
name: kbtui-${{ matrix.platform }}-buildbeta
path: kbtui.exe

Loading…
Cancel
Save