Skip to content

Commit

Permalink
Added release.yml + other things
Browse files Browse the repository at this point in the history
  • Loading branch information
Canvas02 committed Jan 19, 2022
1 parent 22d69be commit 04b2900
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
# Copyright 2022 Canvas02 <Canvas02@protonmail.com>.
# SPDX-License-Identifier: Unlicense

name: Go

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- uses: actions/checkout@v2

- name: Build
run: go build -v ./...
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Build
run: go build -v ./...
# - name: Test
# run: go test -v ./...
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2022 Canvas02 <Canvas02@protonmail.com>.
# SPDX-License-Identifier: Unlicense

on:
release:
types: [created]

jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64]
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/go-release-action@v1.22
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.17

0 comments on commit 04b2900

Please sign in to comment.