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

Skip to content

cache-make

Actions
Use makefile with action/cache
v1.0.0
Latest
Star (5)

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.

cache-make is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Use makefile with action/cache
v1.0.0
Latest

cache-make is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.