Skip to content

Commit

Permalink
Merge pull request #2 from feliixx/update_go
Browse files Browse the repository at this point in the history
Update go
  • Loading branch information
feliixx authored Dec 4, 2020
2 parents 37fdb1c + 45b0073 commit 41c8cfd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Go
name: test

on: [push]
on: push

jobs:

Expand All @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:

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

- name: Check out code
uses: actions/checkout@v2
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,21 @@ jobs:
- name: Check out code
uses: actions/checkout@v2

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

- name: Create linux binary
run: |
env GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o gotranseq
tar -cvzf gotranseq_linux_x86_64.tar.gz gotranseq
- name: Upload linux binary
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: gotranseq_linux_x86_64.tar.gz
asset_name: gotranseq_linux_x86_64.tar.gz
tag: ${{ github.ref }}
overwrite: true

Expand All @@ -38,11 +37,10 @@ jobs:
tar -cvzf gotranseq_macOSX_x86_64.tar.gz gotranseq
- name: Upload macOSX binary
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: gotranseq_macOSX_x86_64.tar.gz
asset_name: gotranseq_macOSX_x86_64.tar.gz
tag: ${{ github.ref }}
overwrite: true

Expand All @@ -52,10 +50,9 @@ jobs:
zip gotranseq_windows_x86_64.zip gotranseq.exe
- name: Upload windows binary
uses: svenstaro/upload-release-action@v1-release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: gotranseq_windows_x86_64.zip
asset_name: gotranseq_windows_x86_64.zip
tag: ${{ github.ref }}
overwrite: true
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/feliixx/gotranseq)](https://goreportcard.com/report/github.com/feliixx/gotranseq)
[![codecov](https://codecov.io/gh/feliixx/gotranseq/branch/master/graph/badge.svg)](https://codecov.io/gh/feliixx/gotranseq)
[![GoDoc](https://godoc.org/github.com/feliixx/gotranseq/transeq?status.svg)](http://godoc.org/github.com/feliixx/gotranseq/transeq)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/feliixx/gotranseq/transeq)](https://pkg.go.dev/github.com/feliixx/gotranseq/transeq)

# Gotranseq

Expand Down Expand Up @@ -42,18 +42,18 @@ First, make sure that go is installed on your machine (see [install go](https://
```
git clone https://github.com/feliixx/gotranseq.git
cd gotranseq
go install
go build
```

## Usage

use `gotranseq --help` to print the help:

```
gotranseq version 0.1
gotranseq version 0.2.2
Usage:
gotranseq
gotranseq --sequence file.fna --outseq out.faa
required:
-s, --sequence=<filename> Nucleotide sequence(s) filename
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
version = "0.2.1"
version = "0.2.2"
toolName = "gotranseq"
)

Expand Down Expand Up @@ -65,6 +65,7 @@ func main() {

var options GlobalOptions
p := flags.NewParser(&options, flags.Default&^flags.HelpFlag)
p.Usage = "--sequence file.fna --outseq out.faa"
_, err := p.Parse()
if err != nil {
fmt.Printf("wrong arguments: %v, try %s --help for more informations\n", err, toolName)
Expand Down

0 comments on commit 41c8cfd

Please sign in to comment.