This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 724
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to GitHub actions * Install golint * Don't fetch all tags for normal builds * Build zips for Windows * Build & upload release assets * Remove travis * Add job names
- Loading branch information
1 parent
1710d34
commit dfb7298
Showing
4 changed files
with
67 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Golang CI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
schedule: | ||
- cron: '15 3 * * 0' | ||
|
||
jobs: | ||
build: | ||
name: CI Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.15' | ||
- name: Setup tools | ||
run: | | ||
go get golang.org/x/lint/golint | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Test Project | ||
run: | | ||
make test | ||
- name: Build Project | ||
run: | | ||
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Publish release artifacts | ||
|
||
on: | ||
release: | ||
type: [created] | ||
|
||
jobs: | ||
release: | ||
name: Publish binaries | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.15' | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Build Project binaries | ||
env: | ||
CGO_ENABLED: 0 | ||
run: | | ||
make xc | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: dist/aws* | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters