From 12f42997a6b700e4ddb134d19b2e1ecab22682e5 Mon Sep 17 00:00:00 2001 From: "Ame :]" <104745335+ameknite@users.noreply.github.com> Date: Sat, 16 Sep 2023 07:17:30 -0600 Subject: [PATCH] Only install the necessary dependencies (#38) * only install the necessary dependencies * add timeout --- .github/workflows/ci.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index db68820..03113f0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,6 +14,7 @@ jobs: test: name: Test Suite runs-on: ubuntu-latest + timeout-minutes: 30 steps: - name: Checkout sources uses: actions/checkout@v4 @@ -30,7 +31,7 @@ jobs: - name: Install stable toolchain uses: dtolnay/rust-toolchain@stable - name: Install Dependencies - run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev + run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev - name: Run cargo test run: cargo test @@ -38,6 +39,7 @@ jobs: clippy_check: name: Clippy runs-on: ubuntu-latest + timeout-minutes: 30 steps: - name: Checkout sources uses: actions/checkout@v4 @@ -56,7 +58,7 @@ jobs: with: components: clippy - name: Install Dependencies - run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev + run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev - name: Run clippy run: cargo clippy -- -D warnings @@ -64,6 +66,7 @@ jobs: format: name: Format runs-on: ubuntu-latest + timeout-minutes: 30 steps: - name: Checkout sources uses: actions/checkout@v4