mirror of
https://github.com/Rudi9719/kbtui.git
synced 2026-03-22 08:47:24 +00:00
41 lines
971 B
YAML
41 lines
971 B
YAML
name: Go
|
|
on: [push]
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
name: Build
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
|
|
- name: Set up Go 1.13
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: 1.13
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Get dependencies
|
|
run: |
|
|
go get -v -t -d ./...
|
|
go get github.com/magefile/mage
|
|
|
|
- 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-${{ 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
|