ci: build releases under recent Erlang/OTP 26/27 #271
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
- push | |
- pull_request | |
- workflow_dispatch | |
jobs: | |
mac: | |
strategy: | |
fail-fast: false | |
matrix: | |
otp: | |
- '27' | |
rebar3: | |
- "3.22.0" | |
os: | |
- macos-15 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- 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 | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- run: ./build.sh | |
- run: rebar3 eunit | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
builder: | |
- 5.4-3:1.17.3-27.2-1 | |
os: | |
- ubuntu24.04 | |
container: ghcr.io/emqx/emqx-builder/${{ matrix.builder }}-${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- run: git config --global --add safe.directory $GITHUB_WORKSPACE | |
- run: ./build.sh | |
- run: rebar3 eunit |