From f655d9ccd612f7c1ef6ece6298114dc76aa04712 Mon Sep 17 00:00:00 2001 From: Leonardo Held Date: Tue, 20 Aug 2024 12:59:28 -0300 Subject: [PATCH] Add CI workflow Related-to: TOR-3521 Signed-off-by: Leonardo Held --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..86a953f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: Build Debian Package + +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Build main project + run: cargo build --release + + - name: Run main project + run: cargo run --release + + - name: Build and test examples + run: | + cargo build --examples + cargo run --example mock_dbus_client + + - name: Run tests + run: cargo test