From f02e4af09a7682bdda828bf04c0f881fe8fa067e Mon Sep 17 00:00:00 2001 From: Ivan Dyachkov Date: Sun, 20 Nov 2022 16:19:28 +0100 Subject: [PATCH] ci: use user home dir for otp install --- .github/actions/package-macos/action.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/package-macos/action.yaml b/.github/actions/package-macos/action.yaml index efa9ac812..52581c4c4 100644 --- a/.github/actions/package-macos/action.yaml +++ b/.github/actions/package-macos/action.yaml @@ -31,14 +31,15 @@ runs: run: | brew update brew install curl zip unzip coreutils openssl@1.1 + mkdir -p $HOME/src $HOME/otp echo "/usr/local/opt/bison/bin" >> $GITHUB_PATH echo "/usr/local/bin" >> $GITHUB_PATH - echo "OTP_SOURCE_PATH=$HOME/otp-${{ inputs.otp }}" >> $GITHUB_ENV - echo "OTP_INSTALL_PATH=/opt/erlang/${{ inputs.otp }}" >> $GITHUB_ENV + echo "OTP_SOURCE_PATH=$HOME/src/otp-${{ inputs.otp }}" >> $GITHUB_ENV + echo "OTP_INSTALL_PATH=$HOME/otp/${{ inputs.otp }}" >> $GITHUB_ENV - uses: actions/cache@v3 id: cache with: - path: /opt/erlang/${{ inputs.otp }} + path: $HOME/otp/${{ inputs.otp }} key: otp-install-${{ inputs.otp }}-${{ inputs.os }}-static-ssl-disable-hipe-disable-jit - name: build erlang if: steps.cache.outputs.cache-hit != 'true'