From 807bac2b1925ab98e2aff313bc7cad544f7b07f7 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Mon, 19 Feb 2024 13:41:29 -0700 Subject: [PATCH] CI: add GHA for verifying compilation --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 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..7f07e79 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: Rust + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: hecrj/setup-rust-action@master + with: + rust-version: stable + + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config libsystemd-dev liblzma-dev libdbus-1-dev + + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose