Skip to content

Commit

Permalink
Cache rebar3 and homebrew packages
Browse files Browse the repository at this point in the history
  • Loading branch information
codeadict committed Feb 22, 2023
1 parent c2a8e14 commit c979796
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,24 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cache rebar3
uses: actions/cache@v3
with:
path: ~/.cache/rebar3
key: ${{runner.os}}-rebar3-cache-${{matrix.otp}}-v2-${{ hashFiles(format('rebar.lock')) }}
- name: Install dependencies (Linux)
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
sudo apt-get -qq update
sudo apt-get -qq install libsnappy-dev libc6-dev
- name: Configure Homebrew cache
if: ${{ startsWith(matrix.os, 'macos') }}
uses: actions/cache@v3
with:
path: |
~/Library/Caches/Homebrew/
~/Library/Caches/Homebrew/downloads/
key: brew-${{ runner.os }}-${{ matrix.otp }}
- name: Install Dependencies (OSX)
if: ${{ startsWith(matrix.os, 'macos') }}
run: |
Expand Down

0 comments on commit c979796

Please sign in to comment.