less than 1 minute read

I created a GitHub action awalsh128/cache-apt-packages that allows caching of Advanced Package Tool (APT) package dependencies to improve workflow execution time instead of installing the packages on every run.

Here is an example using it to cache Doxygen dependencies.

name: Create Documentation
on: push
jobs:

  build_and_deploy_docs:
    runs-on: ubuntu-latest
    name: Build Doxygen documentation and deploy
    steps:
      - uses: actions/checkout@v2
      - uses: awalsh128/cache-apt-pkgs-action-action@v1
        with:
          packages: dia doxygen doxygen-doc doxygen-gui doxygen-latex graphviz mscgen

      - name: Build        
        run: |
          cmake -B $/build -DCMAKE_BUILD_TYPE=$      
          cmake --build $/build --config $

      - name: Deploy
        uses: JamesIves/github-pages-deploy-action@4.1.5
        with:
          branch: gh-pages
          folder: $/build/website

This action is a composition of actions/cache and the apt utility. For more information, see the repository README on GitHub.

Tags:

Updated:

Leave a comment