Revert "ci: Purge GHA"

This reverts commit 0bcc63de8a.
This commit is contained in:
Sam Therapy 2023-02-17 22:36:18 +01:00
parent feb0617ce2
commit da172f9de5
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
2 changed files with 57 additions and 0 deletions

32
.github/workflows/ghrelease.yaml vendored Normal file
View file

@ -0,0 +1,32 @@
name: GitHub Release
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Release with GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

25
.github/workflows/test.yaml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Test
on: push
jobs:
test:
strategy:
fail-fast: true
matrix:
platform: [macos, windows]
goVer: [1.18, 1.19]
runs-on: ${{ matrix.platform }}-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.goVer }}
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Test
run: make test-ci