Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Tag & Release

on:
push:
branches:
- master
tags:
- /^v\d+\.\d+\.\d+.*$/

jobs:
bundle-release:
name: Bundle Release
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux
- os: macos-latest
target: x86_64-apple-darwin
runs-on: ${{ matrix.os }}
env:
PROJECT_NAME: goblin
RELEASE_NAME: ${env:PROJECT_NAME}-${{ github.ref }}-${{ matrix.target }}
steps:

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Build
run: |
make ${env:PROJECT_NAME}

- name: Pack
run: |
make ${env:RELEASE_NAME}.tar.gz

- name: Upload
uses: actions/upload-artifact@v1
with:
name: ${env:RELEASE_NAME}.tar.gz
path: ./${env:RELEASE_NAME}.tar.gz
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests

on: [push]

jobs:
test:
name: Test
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux
- os: macos-latest
target: x86_64-apple-darwin
runs-on: ${{ matrix.os }}
steps:

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Test
run: |
go clean -modcache
make test
53 changes: 0 additions & 53 deletions .travis.yml

This file was deleted.