Skip to content

Commit

Permalink
ci: build using matrix strat
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelFangel committed Nov 22, 2024
1 parent 1a21361 commit b914e16
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,21 @@ concurrency:

jobs:
build:
name: Build and test
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}

strategy:
matrix:
otp: ['24', '25', '26', '27']
elixir: ['1.15', '1.16', '1.17', '1.18']

steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.17.3'
otp-version: '27.0'
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Restore dependencies cache
uses: actions/cache@v4
with:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/elixir_unlocked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,21 @@ concurrency:

jobs:
build:
name: Build and test unlocked
runs-on: ubuntu-latest
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}

strategy:
matrix:
otp: ['24', '25', '26', '27']
elixir: ['1.15', '1.16', '1.17', '1.18']

steps:
- uses: actions/checkout@v4
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: '1.17.3'
otp-version: '27.0'
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Restore dependencies cache
uses: actions/cache@v4
with:
Expand Down

0 comments on commit b914e16

Please sign in to comment.