From 21b1d49b7906e967b530139d8372e9dec763c043 Mon Sep 17 00:00:00 2001 From: Mina Matta Date: Mon, 19 Feb 2024 19:50:29 +1100 Subject: [PATCH] Added build tag and workflow --- .github/workflows/rust.yml | 35 +++++++++++++++++++++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 4 +--- Readme.md | 2 ++ 4 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..10b3dd5 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,35 @@ +name: Rust Build + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Rust nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + profile: minimal + + - name: Install system dependencies + run: | + sudo apt update + sudo apt-get install -y \ + sudo\ + lsb-release\ + cmake\ + wget\ + curl\ + + - name: Perform Build + run: | + cargo build --release diff --git a/Cargo.lock b/Cargo.lock index 7976a86..f70ec55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -258,7 +258,7 @@ dependencies = [ ] [[package]] -name = "email-tester" +name = "email-sender" version = "0.1.0" dependencies = [ "clap", diff --git a/Cargo.toml b/Cargo.toml index dcf7f59..d79bba6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,8 @@ [package] name = "email-sender" -version = "0.1.0" +version = "1.0.0" edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] lettre = { version = "0.11.4", features = [ "tokio1-rustls-tls", diff --git a/Readme.md b/Readme.md index e2fce15..e7132f5 100644 --- a/Readme.md +++ b/Readme.md @@ -1,3 +1,5 @@ +[![Type](https://img.shields.io/badge/type-CLI-yellow.svg?style=flat-square)](https://www.npmjs.com/package/bulk-mail-cli) +