Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
laktak committed Aug 16, 2024
1 parent b3c7aee commit 90b406b
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: laktak
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/*

0 comments on commit 90b406b

Please sign in to comment.