From 21388063c44b78823a88d788730c58d02284c1af Mon Sep 17 00:00:00 2001 From: Simone Cottini Date: Mon, 4 Nov 2024 16:50:34 +0100 Subject: [PATCH 1/3] Trying to use different elixir versions in CI --- .github/workflows/elixir.yml | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index dbe7203..3a4d05b 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -11,13 +11,29 @@ on: jobs: ci: runs-on: ubuntu-latest + strategy: + matrix: + version: [ + { elixir: '1.14', otp: '23' }, + { elixir: '1.14', otp: '24' }, + { elixir: '1.14', otp: '25' }, + { elixir: '1.15', otp: '24' }, + { elixir: '1.15', otp: '25' }, + { elixir: '1.15', otp: '26' }, + { elixir: '1.16', otp: '24' }, + { elixir: '1.16', otp: '25' }, + { elixir: '1.16', otp: '26' }, + { elixir: '1.17', otp: '25' }, + { elixir: '1.17', otp: '26' }, + { elixir: '1.17', otp: '27' } + ] env: MIX_ENV: test steps: - uses: erlef/setup-beam@v1 with: - elixir-version: 1.16 - otp-version: 26 + elixir-version: ${{ matrix.version.elixir }} + otp-version: ${{ matrix.version.otp }} # Check out the code. - name: Checkout @@ -31,9 +47,9 @@ jobs: cache-name: cache-elixir-deps with: path: deps - key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }} + key: ${{ runner.os }}-otp-${{ matrix.version.otp }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }} restore-keys: | - ${{ runner.os }}-mix-${{ env.cache-name }}- + ${{ runner.os }}-otp-${{ matrix.version.otp }}-mix-${{ env.cache-name }}- # Define how to cache the `_build` directory. # After the first run, this speeds up tests runs a lot. # This includes not re-compiling our project's downloaded deps every run. @@ -44,10 +60,10 @@ jobs: cache-name: cache-compiled-build with: path: _build - key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }} + key: ${{ runner.os }}-otp-${{ matrix.version.otp }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }} restore-keys: | - ${{ runner.os }}-mix-${{ env.cache-name }}- - ${{ runner.os }}-mix- + ${{ runner.os }}-otp-${{ matrix.version.otp }}-mix-${{ env.cache-name }}- + ${{ runner.os }}-otp-${{ matrix.version.otp }}-mix- # Conditionally bust the cache when job is re-run. # Sometimes, we may have issues with incremental builds that are fixed by doing a full recompile. # In order to not waste dev time on such trivial issues force a full recompile only on builds that are retried. From a93b3df1ec14e4efce34755d5de390fa74e1606f Mon Sep 17 00:00:00 2001 From: Simone Cottini Date: Mon, 4 Nov 2024 16:52:39 +0100 Subject: [PATCH 2/3] Removing otp23 --- .github/workflows/elixir.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 3a4d05b..41b56ac 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -14,7 +14,6 @@ jobs: strategy: matrix: version: [ - { elixir: '1.14', otp: '23' }, { elixir: '1.14', otp: '24' }, { elixir: '1.14', otp: '25' }, { elixir: '1.15', otp: '24' }, From cf1b04016aa066a5ddc596b954d4ab51ebfbe589 Mon Sep 17 00:00:00 2001 From: Simone Cottini Date: Mon, 4 Nov 2024 16:55:38 +0100 Subject: [PATCH 3/3] Commenting out elixir 27 --- .github/workflows/elixir.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 41b56ac..1183dc2 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -21,10 +21,10 @@ jobs: { elixir: '1.15', otp: '26' }, { elixir: '1.16', otp: '24' }, { elixir: '1.16', otp: '25' }, - { elixir: '1.16', otp: '26' }, - { elixir: '1.17', otp: '25' }, - { elixir: '1.17', otp: '26' }, - { elixir: '1.17', otp: '27' } + { elixir: '1.16', otp: '26' } + # { elixir: '1.17', otp: '25' }, + # { elixir: '1.17', otp: '26' }, + # { elixir: '1.17', otp: '27' } ] env: MIX_ENV: test