Skip to content

Commit

Permalink
Add OTP-26 to CI; use container-based build
Browse files Browse the repository at this point in the history
  • Loading branch information
seriyps committed May 17, 2023
1 parent 008cc33 commit 996d768
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,25 @@ jobs:
ci:
name: Run checks and tests over ${{matrix.otp}} and ${{matrix.os}}
runs-on: ${{matrix.os}}
container:
image: erlang:${{ matrix.otp }}

strategy:
fail-fast: false
matrix:
otp: ["25.3", "24.3"]
otp: ["26.0", "25.3", "24.3"]
os: ["ubuntu-22.04"]
rebar3: ["3.20.0"]
include:
- otp: "23.3"
os: "ubuntu-20.04"
rebar3: "3.17.0"
- otp: "22.3"
os: "ubuntu-20.04"
rebar3: "3.17.0"
- otp: "21.3"
os: "ubuntu-20.04"
rebar3: "3.15.2"

steps:
- uses: actions/checkout@v3

- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
rebar3-version: ${{ matrix.rebar3 }}

- name: Compile
run: make

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/hot_upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@ jobs:
ci:
name: Hot code upgrade from ${{ matrix.from_version }} on OTP-${{ matrix.otp }}
runs-on: ${{matrix.os}}
container:
image: erlang:${{ matrix.otp }}

strategy:
fail-fast: true
matrix:
os: ["ubuntu-20.04"]
otp: ["23.3"]
rebar3: ["3.17.0"]
from_version:
- "1.5.2"
- "9c28fb479f9329e2a1644565a632bc222780f1b7"

steps:
# This is to not have the git safe.directory failure
- name: Change owner of container working directory
run: chown root:root .

- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
rebar3-version: ${{ matrix.rebar3 }}

- name: Hot-upgrade
run: make hotupgrade_setup BASE_REV=${{ matrix.from_version }} hotupgrade_check

0 comments on commit 996d768

Please sign in to comment.