Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Attempt to speed up CI by caching cargo dependencies #1086

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Generate Cargo.lock
run: cargo generate-lockfile

- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
#if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'MacOS')

- name: install libgtk-3-dev libx11-dev
run: |
sudo apt update
Expand Down Expand Up @@ -138,6 +150,18 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Generate Cargo.lock
run: cargo generate-lockfile

- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
#if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'MacOS')

# libgtk-dev seems to be needed by e.g. druid-derive
- name: install libgtk-dev
run: |
Expand Down Expand Up @@ -239,6 +263,18 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Generate Cargo.lock
run: cargo generate-lockfile

- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
#if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'MacOS')

- name: install libgtk-dev libx11-dev
run: |
sudo apt update
Expand Down Expand Up @@ -302,6 +338,18 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Generate Cargo.lock
run: cargo generate-lockfile

- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
#if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'MacOS')

- name: install libgtk-dev
run: |
sudo apt update
Expand Down Expand Up @@ -354,6 +402,18 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Generate Cargo.lock
run: cargo generate-lockfile

- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
#if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'MacOS')

- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down