From ca0845f831086f34d5beb26357cf1429a993d937 Mon Sep 17 00:00:00 2001 From: Wenda Zhang Date: Sat, 25 Nov 2023 14:10:36 +0800 Subject: [PATCH] ci: fix dependencies installing for act --- .github/workflows/build.yml | 2 +- .github/workflows/rust.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b66e8a3..e72f0f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/checkout@v2 - uses: Swatinem/rust-cache@v1 - - run: sudo apt-get install libssl-dev libsqlite3-dev libasound2-dev + - run: sudo apt-get update && sudo apt-get install -y libssl-dev libsqlite3-dev libasound2-dev - name: Build binary uses: houseabsolute/actions-rust-cross@v0 with: diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7ce0883..7dcb39d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,7 +13,7 @@ jobs: profile: minimal toolchain: stable override: true - - run: sudo apt-get install libssl-dev libsqlite3-dev libasound2-dev + - run: sudo apt-get update && sudo apt-get install -y libssl-dev libsqlite3-dev libasound2-dev - uses: actions-rs/cargo@v1 with: command: check @@ -29,7 +29,7 @@ jobs: profile: minimal toolchain: stable override: true - - run: sudo apt-get install libssl-dev libsqlite3-dev libasound2-dev + - run: sudo apt-get update && sudo apt-get install -y libssl-dev libsqlite3-dev libasound2-dev - name: Checkout submodules run: | git submodule init @@ -66,7 +66,7 @@ jobs: toolchain: stable override: true components: clippy - - run: sudo apt-get install libssl-dev libsqlite3-dev libasound2-dev + - run: sudo apt-get update && sudo apt-get install -y libssl-dev libsqlite3-dev libasound2-dev - uses: actions-rs/cargo@v1 with: command: clippy