Add gitea CI and task
Build and Test Formaty / build (push) Successful in 2m8s
Build and Release Formaty / build (release) Successful in 2m7s

This commit is contained in:
2026-04-12 11:46:23 -06:00
parent a22c781c52
commit 4135098c3d
4 changed files with 90 additions and 42 deletions
+29
View File
@@ -0,0 +1,29 @@
name: Build and Test Formaty
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Task
uses: go-task/setup-task@v2
with:
repo-token: ${{ secrets.TASK_GITHUB_API_TOKEN }}
- uses: actions/checkout@v2
- name: Stable with rustfmt and clippy
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: Lint Code
run: task check
- name: Build
run: task build
- name: Run Unit Tests
run: task test
- name: Upload Built Binary
uses: christopherHX/gitea-upload-artifact@v4
with:
name: formaty
path: target/debug/formaty
+23
View File
@@ -0,0 +1,23 @@
name: Build and Release Formaty
on: [release]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Task
uses: go-task/setup-task@v2
with:
repo-token: ${{ secrets.TASK_GITHUB_API_TOKEN }}
- uses: actions/checkout@v2
- name: Stable with rustfmt and clippy
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Build Release
run: task build:release
- uses: https://gitea.com/actions/gitea-release-action@v1
with:
files: |-
target/release/formaty