Skip to content

Bump to 1.3

Bump to 1.3 #18

Workflow file for this run

name: CI Build
on:
push:
branches:
- "master"
paths:
- "**.go"
- "go.mod"
- "go.sum"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.17' ]
steps:
- name: Set up Go v${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v2
- name: Install deps
run: |
go version
go get -v -d ./...
- name: Cache modules
uses: actions/cache@v2
with:
path: $GOPATH/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go
- name: Vet code
run: go vet
- name: Build binaries
run: |
GOOS=linux GOARCH=amd64 go build -o apnscmd_linux_amd64
GOOS=linux GOARCH=386 go build -o apnscmd_linux_386
GOOS=linux GOARCH=arm64 go build -o apnscmd_linux_arm64
GOOS=darwin GOARCH=amd64 go build -o apnscmd_darwin_amd64
GOOS=windows GOARCH=386 go build -o apnscmd_windows_386.exe
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Latest Build"
files: |
LICENSE
apnscmd_*