Skip to content

Commit

Permalink
Add cache for apt and cargo dependencies (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet authored Dec 8, 2022
1 parent 7bc59c6 commit 1b0cb3d
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,23 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:

tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Cache APT Packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages:
build-essential
libgtk-3-dev
libhdf5-dev
librust-atk-dev
version: 1.0
- name: Install dependencies
run: |
sudo apt-get install build-essential libgtk-3-dev
sudo apt-get install librust-atk-dev
sudo apt-get install libhdf5-serial-dev
rustup component add clippy
- name: Check package & dependencies for errors
run: cargo check
Expand Down

0 comments on commit 1b0cb3d

Please sign in to comment.