Skip to content

Commit

Permalink
Runtime: Cache hex.pm archive from rebar3 and mix
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Aug 26, 2024
1 parent aa1717e commit 795498f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
- name: Remove syntax_tools from release
run: sed -i 's|, syntax_tools||g' src/ejabberd.app.src.script

- name: Cache rebar
- name: Cache Hex.pm
uses: actions/cache@v4
with:
path: |
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ jobs:
apt-get -qq install libexpat1-dev libgd-dev libpam0g-dev \
libsqlite3-dev libwebp-dev libyaml-dev
- name: Cache Hex.pm
uses: actions/cache@v4
with:
path: |
~/.cache/rebar3/
key: ${{matrix.otp}}-${{hashFiles('rebar.config')}}

- name: Compile
run: |
./autogen.sh
Expand Down Expand Up @@ -204,6 +211,13 @@ jobs:
sed -i 's|^{deps, \[\(.*\)|{deps, [{decimal, ".*", {git, "https://github.com/ericmj/decimal", {branch, "main"}}},\n \1|g' rebar.config
cat rebar.config
- name: Cache Hex.pm
uses: actions/cache@v4
with:
path: |
~/.cache/rebar3/
key: ${{matrix.otp}}-${{hashFiles('rebar.config')}}

- name: Compile
run: |
./autogen.sh
Expand Down Expand Up @@ -347,6 +361,13 @@ jobs:
run: |
mix deps.unlock jose
- name: Cache Hex.pm
uses: actions/cache@v4
with:
path: |
~/.hex/
key: ${{matrix.otp}}-${{hashFiles('mix.exs')}}

- name: Compile
run: |
./autogen.sh
Expand Down

0 comments on commit 795498f

Please sign in to comment.