Skip to content

Commit

Permalink
CI: Ensure apt repository is up-to-date before installing build deps
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d committed Jun 13, 2023
1 parent 5b0736f commit 49bd8f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install linux build dependencies
run: sudo apt install libfuse-dev
run: sudo apt update && sudo apt install libfuse-dev
- run: cargo check --all-targets --all-features

clippy:
Expand All @@ -50,7 +50,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install linux build dependencies
run: sudo apt install libfuse-dev
run: sudo apt update && sudo apt install libfuse-dev
- name: Clippy check
uses: actions-rs/clippy-check@v1
with:
Expand All @@ -68,7 +68,7 @@ jobs:
id: toolchain
- run: rustup override set ${{steps.toolchain.outputs.name}}
- name: Install linux build dependencies
run: sudo apt install libfuse-dev
run: sudo apt update && sudo apt install libfuse-dev
- name: Generate coverage report
uses: actions-rs/tarpaulin@v0.1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/interop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:

# Prepare the test environment
- name: Install dos2unix for simulating Windows files
run: sudo apt install dos2unix
run: sudo apt update && sudo apt install dos2unix
- name: Write (very not private) age X25519 key
if: matrix.recipient == 'x25519'
run: echo "AGE-SECRET-KEY-1TRYTV7PQS5XPUYSTAQZCD7DQCWC7Q77YJD7UVFJRMW4J82Q6930QS70MRX" >key.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- run: rustup override set ${{steps.toolchain.outputs.name}}

- name: Install linux build dependencies
run: sudo apt install ${{ matrix.build_deps }}
run: sudo apt update && sudo apt install ${{ matrix.build_deps }}
if: matrix.build_deps != ''

- name: Set up .cargo/config
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
run: cargo install cargo-deb

- name: Install build dependencies
run: sudo apt install ${{ matrix.build_deps }}
run: sudo apt update && sudo apt install ${{ matrix.build_deps }}
if: matrix.build_deps != ''

- name: Set up .cargo/config
Expand Down

0 comments on commit 49bd8f9

Please sign in to comment.