Skip to content

Commit 0f52b01

Browse files
authored
Merge pull request #52 from keynslug/chore/EMQX-13447/release-otp27
ci: build releases under recent Erlang/OTP 26/27
2 parents 51222e0 + 20809dc commit 0f52b01

File tree

2 files changed

+50
-32
lines changed

2 files changed

+50
-32
lines changed

.github/workflows/eunit.yaml

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,49 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
otp:
14-
- 26.1.2-1
14+
- '27'
15+
rebar3:
16+
- "3.22.0"
1517
os:
16-
- macos-14
18+
- macos-15
19+
1720
runs-on: ${{ matrix.os }}
1821
steps:
19-
- uses: actions/checkout@v3
22+
- name: install erlang & build tooling
23+
env:
24+
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: "1"
25+
run: |
26+
brew update
27+
brew install automake libtool
28+
brew install erlang@${{ matrix.otp }}
29+
echo "$(brew --prefix erlang@${{ matrix.otp }})/bin" >> $GITHUB_PATH
30+
31+
- name: install rebar3
32+
run: |
33+
wget https://github.com/erlang/rebar3/releases/download/${{ matrix.rebar3 }}/rebar3 && chmod +x rebar3
34+
sudo mv rebar3 /usr/local/bin/ && sudo chmod +x /usr/local/bin/rebar3
35+
36+
- uses: actions/checkout@v4
2037
with:
2138
submodules: recursive
22-
- uses: ./.github/actions/macos-erlang
23-
with:
24-
otp: ${{ matrix.otp }}
25-
os: ${{ matrix.os }}
26-
- run: |
27-
. $HOME/.kerl/${{ matrix.otp }}/activate
28-
./build.sh
29-
rebar3 eunit
39+
- run: ./build.sh
40+
- run: rebar3 eunit
3041

3142
linux:
32-
runs-on: ubuntu-22.04
43+
runs-on: ubuntu-latest
3344

3445
strategy:
3546
fail-fast: false
3647
matrix:
3748
builder:
38-
- 5.3-8
39-
otp:
40-
- 26.2.5-2
41-
elixir:
42-
- 1.15.7
49+
- 5.4-4:1.17.3-27.2-2
4350
os:
4451
- ubuntu24.04
4552

46-
container: ghcr.io/emqx/emqx-builder/${{ matrix.builder }}:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}
53+
container: ghcr.io/emqx/emqx-builder/${{ matrix.builder }}-${{ matrix.os }}
4754

4855
steps:
49-
- uses: actions/checkout@v3
56+
- uses: actions/checkout@v4
5057
with:
5158
submodules: recursive
5259
- run: git config --global --add safe.directory $GITHUB_WORKSPACE

.github/workflows/release.yaml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,37 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
otp:
26-
- 25.3.2-2
27-
- 26.1.2-1
26+
- "26"
27+
- "27"
28+
rebar3:
29+
- "3.22.0"
2830
os:
29-
- macos-13
3031
- macos-14
32+
- macos-15
3133
runs-on: ${{ matrix.os }}
3234
steps:
33-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
3436
with:
3537
submodules: recursive
3638
fetch-depth: 0
3739
ref: ${{ github.event.inputs.build_from }} # when input is not given, the event tag is used
3840

39-
- uses: ./.github/actions/macos-erlang
40-
with:
41-
otp: ${{ matrix.otp }}
42-
os: ${{ matrix.os }}
41+
- name: install erlang & build tooling
42+
env:
43+
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: "1"
44+
run: |
45+
brew update
46+
brew install automake libtool
47+
brew install erlang@${{ matrix.otp }}
48+
echo "$(brew --prefix erlang@${{ matrix.otp }})/bin" >> $GITHUB_PATH
49+
50+
- name: install rebar3
51+
run: |
52+
wget https://github.com/erlang/rebar3/releases/download/${{ matrix.rebar3 }}/rebar3 && chmod +x rebar3
53+
sudo mv rebar3 /usr/local/bin/ && sudo chmod +x /usr/local/bin/rebar3
4354
4455
- name: build release
4556
run: |
46-
. $HOME/.kerl/${{ matrix.otp }}/activate
4757
env BUILD_RELEASE=1 CI_RELEASE_VERSION=${{ github.event.inputs.release_as }} ./build.sh
4858
4959
- uses: actions/upload-artifact@v3
@@ -58,8 +68,8 @@ jobs:
5868
fail-fast: false
5969
matrix:
6070
builder:
61-
- 5.3-8:1.15.7-25.3.2-2
62-
- 5.3-8:1.15.7-26.2.5-2
71+
- 5.4-4:1.15.7-26.2.5.2-3
72+
- 5.4-4:1.17.3-27.2-2
6373
arch:
6474
- amd64
6575
- arm64
@@ -75,12 +85,13 @@ jobs:
7585
- el8
7686
- el9
7787
- alpine3.15.1
88+
7889
runs-on: ubuntu-latest
7990
env:
8091
IMAGE: ghcr.io/emqx/emqx-builder/${{ matrix.builder }}-${{ matrix.os }}
8192

8293
steps:
83-
- uses: actions/checkout@v3
94+
- uses: actions/checkout@v4
8495
with:
8596
submodules: recursive
8697
fetch-depth: 0
@@ -116,7 +127,7 @@ jobs:
116127
- linux
117128
if: startsWith(github.ref, 'refs/tags/') || inputs.release_as
118129
steps:
119-
- uses: actions/download-artifact@v3
130+
- uses: actions/download-artifact@v4
120131
with:
121132
name: packages
122133
path: packages

0 commit comments

Comments
 (0)