From 795498fa455d4527ceedbc543e04d5e832068dff Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 26 Aug 2024 13:40:19 +0200 Subject: [PATCH] Runtime: Cache hex.pm archive from rebar3 and mix --- .github/workflows/ci.yml | 2 +- .github/workflows/runtime.yml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) 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