Skip to content

Commit

Permalink
ci: build releases under recent Erlang/OTP 26/27
Browse files Browse the repository at this point in the history
Also run macos builds under vanilla Erlang/OTP provided by Homebrew.
  • Loading branch information
keynslug committed Jan 20, 2025
1 parent e7a6bee commit 40a4447
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,36 @@ jobs:
fail-fast: false
matrix:
otp:
- 25.3.2-2
- 26.1.2-1
- "26"
- "27"
rebar3:
- "3.22.0"
os:
- macos-13
- macos-14
- macos-15
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
ref: ${{ github.event.inputs.build_from }} # when input is not given, the event tag is used

- uses: ./.github/actions/macos-erlang
with:
otp: ${{ matrix.otp }}
os: ${{ matrix.os }}
- name: install erlang
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: "1"
run: |
brew update
brew install erlang@${{ matrix.otp }}
echo "$(brew --prefix erlang@${{ matrix.otp }})/bin" >> $GITHUB_PATH
- name: install rebar3
run: |
wget https://github.com/erlang/rebar3/releases/download/${{ matrix.rebar3 }}/rebar3 && chmod +x rebar3
sudo mv rebar3 /usr/local/bin/ && sudo chmod +x /usr/local/bin/rebar3
- name: build release
run: |
. $HOME/.kerl/${{ matrix.otp }}/activate
env BUILD_RELEASE=1 CI_RELEASE_VERSION=${{ github.event.inputs.release_as }} ./build.sh
- uses: actions/upload-artifact@v3
Expand All @@ -58,8 +67,8 @@ jobs:
fail-fast: false
matrix:
builder:
- 5.3-8:1.15.7-25.3.2-2
- 5.3-8:1.15.7-26.2.5-2
- 5.4-3:1.15.7-26.2.5.2-2
- 5.4-3:1.17.3-27.2-1
arch:
- amd64
- arm64
Expand All @@ -75,12 +84,13 @@ jobs:
- el8
- el9
- alpine3.15.1

runs-on: ubuntu-latest
env:
IMAGE: ghcr.io/emqx/emqx-builder/${{ matrix.builder }}-${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
Expand Down Expand Up @@ -116,7 +126,7 @@ jobs:
- linux
if: startsWith(github.ref, 'refs/tags/') || inputs.release_as
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: packages
path: packages
Expand Down

0 comments on commit 40a4447

Please sign in to comment.