From 45f4b3e72b55ae05ff3e532be6eb7e47b609200f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20M=C3=B6ller?= Date: Thu, 5 Dec 2024 22:58:44 +0100 Subject: [PATCH] Update ci.yml - introducing caching of Ubuntu packages --- .github/workflows/ci.yml | 43 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f91553c0b6e..98f104acafe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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: |