diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 92cce48..72f76ab 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -27,7 +27,8 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: erlef/setup-beam@v1 + - id: beam + uses: erlef/setup-beam@v1 with: elixir-version: 1 otp-version: 27 @@ -37,10 +38,10 @@ jobs: path: | deps _build - key: bench-${{ github.head_ref || github.ref }}-${{ hashFiles('**/mix.lock') }} + key: bench-${{ steps.beam.outputs.elixir-version }}-${{ github.head_ref || github.ref }}-${{ hashFiles('**/mix.lock') }} restore-keys: | - bench-${{ github.head_ref || github.ref }}- - bench-refs/heads/master- + bench-${{ steps.beam.outputs.elixir-version }}-${{ github.head_ref || github.ref }}- + bench-${{ steps.beam.outputs.elixir-version }}-refs/heads/master- - run: mix deps.get --only $MIX_ENV - run: mix compile --warnings-as-errors diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 163c245..43b26c7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,7 +57,8 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: erlef/setup-beam@v1 + - id: beam + uses: erlef/setup-beam@v1 with: elixir-version: ${{ matrix.elixir }} otp-version: ${{ matrix.otp }} @@ -67,10 +68,10 @@ jobs: path: | deps _build - key: test-${{ matrix.otp }}-${{ matrix.elixir }}-${{ github.head_ref || github.ref }}-${{ hashFiles('**/mix.lock') }} + key: test-${{ steps.beam.outputs.elixir-version }}-${{ github.head_ref || github.ref }}-${{ hashFiles('**/mix.lock') }} restore-keys: | - test-${{ matrix.otp }}-${{ matrix.elixir }}-${{ github.head_ref || github.ref }}- - test-${{ matrix.otp }}-${{ matrix.elixir }}-refs/heads/master- + test-${{ steps.beam.outputs.elixir-version }}-${{ github.head_ref || github.ref }}- + test-${{ steps.beam.outputs.elixir-version }}-refs/heads/master- - run: mix deps.get --only $MIX_ENV - run: mix compile --warnings-as-errors