Compare commits

..

No commits in common. "f1bce47ea3025489ed541039f56b296892de1be9" and "87db209786051614fb27a8a28bcdec64c36bbe05" have entirely different histories.

2 changed files with 3 additions and 48 deletions

View file

@ -1,43 +0,0 @@
name: Cargo Build & Test
on:
push:
branches:
- main
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
formatting:
name: hem - Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: https://github.com/dtolnay/rust-toolchain@1.88
with:
components: rustfmt
- run: cargo fmt --check
build_and_test:
name: hem - Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: https://github.com/dtolnay/rust-toolchain@1.88
id: toolchain
with:
components: clippy
- name: ⚡ Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ steps.toolchain.outputs.cachekey }}
- run: cargo clippy --all-targets -- -D warnings
- run: cargo build --verbose
- run: cargo test --verbose

View file

@ -1,5 +1,3 @@
#![expect(dead_code)]
use clap::Parser;
mod cli;
@ -7,10 +5,10 @@ mod expr;
fn main() -> miette::Result<()> {
let args = cli::Args::parse();
let _input_delim = args.delimiter();
let _input = args.input();
let input_delim = args.delimiter();
let input = args.input();
let _expression = expr::parse(&args.expression)?;
let expression = expr::parse(&args.expression)?;
Ok(())
}