diff --git a/.gitea/workflows/cli.yaml b/.gitea/workflows/cli.yaml new file mode 100644 index 0000000..993d917 --- /dev/null +++ b/.gitea/workflows/cli.yaml @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/gui.yaml b/.gitea/workflows/gui.yaml new file mode 100644 index 0000000..4d93e33 --- /dev/null +++ b/.gitea/workflows/gui.yaml @@ -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 \ No newline at end of file diff --git a/tnm-cli/src/main.rs b/tnm-cli/src/main.rs index a2c9913..1981b58 100644 --- a/tnm-cli/src/main.rs +++ b/tnm-cli/src/main.rs @@ -1,4 +1,4 @@ -use std::process::{ExitCode, Termination}; +use std::process::{ExitCode}; use anyhow::{Result, Context}; use clap::{Command};