diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 582c3f8c032..21faf598e33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: | diff --git a/.github/workflows/runtime.yml b/.github/workflows/runtime.yml index 87f9328e620..f3d4a1ffd6e 100644 --- a/.github/workflows/runtime.yml +++ b/.github/workflows/runtime.yml @@ -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 @@ -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 @@ -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