From 45ab379189741d0da1ee7184a1122ded8fb74758 Mon Sep 17 00:00:00 2001 From: William Yang Date: Sun, 3 Dec 2023 20:36:00 +0100 Subject: [PATCH] ci: fix otp26 release --- .github/workflows/release.yaml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b6ba16fb..696a3c25 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,23 +12,32 @@ jobs: fail-fast: false matrix: otp: - - 25.3.2-2 - - 26.1.2-1 + - 25 + - 26 openssl: - openssl3 - openssl os: - macos-12 - - macos-11 - macos-12-arm64 runs-on: ${{ matrix.os }} steps: - - uses: emqx/setup-otp@v1.0.0 + - name: Configure Homebrew cache + uses: actions/cache@v3 with: - os: ${{ matrix.os }} - otp: ${{ matrix.otp }} - + path: | + ~/Library/Caches/Homebrew/ + ~/Library/Caches/Homebrew/downloads/ + key: brew-${{ matrix.os }}-${{ matrix.otp }} + - name: prepare + run: | + export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 + brew install erlang@${{ matrix.otp }} + - name: install rebar3 + run: | + wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3 + cp ./rebar3 /usr/local/bin/rebar3 - uses: actions/checkout@v3 with: fetch-depth: 0 @@ -38,6 +47,8 @@ jobs: env: QUIC_TLS: ${{ matrix.openssl }} run: | + export PATH="/usr/local/opt/erlang@${{ matrix.otp }}/bin:$PATH" + erl -eval 'erlang:display(erlang:system_info(system_version)),halt()' export QUIC_TLS BUILD_RELEASE=1 make