This commit is contained in:
Christian Zangl 2024-08-16 23:13:44 +02:00
parent b3c7aeed4c
commit 90b406b066
No known key found for this signature in database
GPG Key ID: 6D468AC36E2A4B3D
3 changed files with 68 additions and 0 deletions

1
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1 @@
github: laktak

31
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: ci
on:
push:
branches: []
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: chkfmt
run: scripts/chkfmt
- name: prep-test
run: scripts/run_test_prep
- name: tests
run: |
scripts/tests
scripts/run_tests
- name: xbuild
run: scripts/xbuild

36
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: release
on:
push:
tags: ["v*"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: chkfmt
run: scripts/chkfmt
- name: prep-test
run: scripts/run_test_prep
- name: tests
run: |
scripts/tests
scripts/run_tests
- name: xbuild
run: version=${GITHUB_REF#$"refs/tags/v"} scripts/xbuild
- name: release
uses: softprops/action-gh-release@v2
with:
draft: true
files: dist/*