CI: Run `apt update` before installing pacakges
The index contained in GH Actions' virtual environments always lag
behind a bit and might point to superseded packages.
@@ -49,7 +49,9 @@ jobs:
path: target
key: checks-${{ runner.os }}-cargo-target-dir-${{ steps.toolchain.outputs.rustc_hash }}
- name: Install packages from apt
- run: sudo apt install libgtk-3-dev libssh2-1-dev libglib2.0-dev libgraphene-1.0-dev libcairo-gobject2 libcairo2-dev
+ run: |
+ sudo apt update
+ sudo apt install libgtk-3-dev libssh2-1-dev libglib2.0-dev libgraphene-1.0-dev libcairo-gobject2 libcairo2-dev
if: matrix.os == 'ubuntu-20.04'
- name: "Run clippy"
uses: actions-rs/cargo@v1
@@ -121,7 +123,9 @@ jobs:
path: target
key: build-${{ runner.os }}-cargo-target-dir-${{ steps.toolchain.outputs.rustc_hash }}
- name: Install packages from apt
- run: sudo apt install libgtk-3-dev libssh2-1-dev libglib2.0-dev libgraphene-1.0-dev libcairo-gobject2 libcairo2-dev
+ run: |
+ sudo apt update
+ sudo apt install libgtk-3-dev libssh2-1-dev libglib2.0-dev libgraphene-1.0-dev libcairo-gobject2 libcairo2-dev
if: matrix.os == 'ubuntu-20.04'
- name: Install toolchain packages with pacman
run: pacman --noconfirm -S base-devel mingw-w64-${{ matrix.arch }}-toolchain
