feat: add workflows
Some checks failed
build

This commit is contained in:
TheClashFruit 2023-04-07 21:30:08 +02:00
parent ccfe3707aa
commit e2feb91777
Signed by: TheClashFruit
GPG key ID: CF4A319B9A73290C
3 changed files with 43 additions and 1 deletions

21
.gitea/workflows/cli.yaml Normal file
View file

@ -0,0 +1,21 @@
name: Build and Test with cargo
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./tnm-cli
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose

21
.gitea/workflows/gui.yaml Normal file
View file

@ -0,0 +1,21 @@
name: Build and Test with cargo
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./tnm-gui
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose

View file

@ -1,4 +1,4 @@
use std::process::{ExitCode, Termination}; use std::process::{ExitCode};
use anyhow::{Result, Context}; use anyhow::{Result, Context};
use clap::{Command}; use clap::{Command};