Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cache outputs of make with actions/cache

License

flat35hd99/cache-make

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache make result on GitHub Actions using cache action

Usage

jobs:
  build:
    runs-on: ubuntu-18.04
    steps:
      # To load past commits, please set `fetch-depth: 0`
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      # Cache output files in dist directory
      - name: Setup cache
        uses: actions/cache@v2
        with:
          path: test/dist
          key: ${{ runner.os }}-makefile-${{ github.sha }}-${{ hashFiles('**/makefile') }}
          restore-keys: |
            ${{ runner.os }}-makefile-
      # This workflow change updated time of files was not changed.
      # You can control behavior by setting reference, or commit id.
      # See below more infomation.
      - name: Change updated time
        uses: flat35hd99/[email protected]

      - name: Build
        run: make

Use case and anti pattern

CI/CD is a strong way to demonstrate reproducibility. Without knowledge and enough consideration, use of this action may cause some problems.

About

Cache outputs of make with actions/cache

Resources

License

Stars

Watchers

Forks

Packages

No packages published