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

Update ci.yml - introducing caching of Ubuntu packages #3208

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
43 changes: 42 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ jobs:
submodules: true
fetch-depth: 0
- run: git fetch --recurse-submodules=no https://github.com/linuxcnc/linuxcnc +refs/tags/*:refs/tags/*
- name: Cache APT packages
uses: actions/cache@v3
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt-cache-${{ hashFiles('**/Dockerfile') }}
restore-keys: |
${{ runner.os }}-apt-cache-
- name: Build RIP & test
run: |
set -x
Expand All @@ -52,6 +59,13 @@ jobs:
submodules: true
fetch-depth: 0
- run: git fetch --recurse-submodules=no https://github.com/linuxcnc/linuxcnc +refs/tags/*:refs/tags/*
- name: Cache APT packages
uses: actions/cache@v3
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt-cache-${{ hashFiles('**/Dockerfile') }}
restore-keys: |
${{ runner.os }}-apt-cache-
- name: Clang build RIP & test
run: |
set -x
Expand All @@ -78,6 +92,13 @@ jobs:
submodules: true
fetch-depth: 0
- run: git fetch --recurse-submodules=no https://github.com/linuxcnc/linuxcnc +refs/tags/*:refs/tags/*
- name: Cache APT packages
uses: actions/cache@v3
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt-cache-${{ hashFiles('**/Dockerfile') }}
restore-keys: |
${{ runner.os }}-apt-cache-
- name: Build HTML docmentation
run: |
./scripts/travis-install-build-deps.sh
Expand Down Expand Up @@ -106,6 +127,13 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Cache APT packages
uses: actions/cache@v3
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt-cache-${{ hashFiles('**/Dockerfile') }}
restore-keys: |
${{ runner.os }}-apt-cache-
- name: Install pre-dependencies
env:
DEBIAN_FRONTEND: noninteractive
Expand Down Expand Up @@ -187,7 +215,13 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

- name: Cache APT packages
uses: actions/cache@v3
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt-cache-${{ hashFiles('**/Dockerfile') }}
restore-keys: |
${{ runner.os }}-apt-cache-
- name: Install pre-dependencies
env:
DEBIAN_FRONTEND: noninteractive
Expand Down Expand Up @@ -255,6 +289,13 @@ jobs:
with:
submodules: true
fetch-depth: 0
- name: Cache APT packages
uses: actions/cache@v3
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt-cache-${{ hashFiles('**/Dockerfile') }}
restore-keys: |
${{ runner.os }}-apt-cache-
- name: Perform Source Code checks that were successful in the past
continue-on-error: true
run: |
Expand Down
Loading