diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 416dd5a1c..393d778a5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,12 +54,12 @@ jobs: submodules: 'recursive' - name: Get the version id: get_version - run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT + run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV shell: bash - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: '18.x' + node-version: '20.x' - name: Install dependencies shell: bash run: './ci/install-dependencies-osx.sh' @@ -125,7 +125,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: '18.x' + node-version: '20.x' - name: Install dependencies shell: bash run: './ci/install-dependencies-osx.sh' @@ -190,7 +190,7 @@ jobs: TARGET_ARTIFACT: ${{env.PACKAGE_NAME}}-${{ steps.get_version.outputs.VERSION }}-${{matrix.ReleaseName}}-${{env.OS_TAG}}-${{matrix.Architecture}} - name: Configure AWS credentials if: startsWith(github.ref, 'refs/tags/') - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{secrets.AWS_RELEASE_ACCESS_KEY_ID}} aws-secret-access-key: ${{secrets.AWS_RELEASE_SECRET_ACCESS_KEY}} @@ -278,7 +278,7 @@ jobs: id: get_version run: | $version = $env:GITHUB_REF -replace 'refs/tags/', '' - "VERSION=$version" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append + "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append shell: pwsh - name: Install dependencies run: | @@ -372,7 +372,7 @@ jobs: TARGET_ARTIFACT: ${{env.PACKAGE_NAME}}-${{ steps.get_version.outputs.VERSION }}-release-${{env.OS_TAG}} - name: Configure AWS credentials if: startsWith(github.ref, 'refs/tags/') - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{secrets.AWS_RELEASE_ACCESS_KEY_ID}} aws-secret-access-key: ${{secrets.AWS_RELEASE_SECRET_ACCESS_KEY}} diff --git a/ci/install-dependencies-osx.sh b/ci/install-dependencies-osx.sh index 86cd99931..4735afbc1 100755 --- a/ci/install-dependencies-osx.sh +++ b/ci/install-dependencies-osx.sh @@ -1,11 +1,27 @@ -# Install system dependencies +#!/bin/bash +set -e + +# Remove preinstalled deprecated/disabled formulae and casks +brew uninstall --ignore-dependencies openssl@1.1 2>/dev/null || true +brew uninstall --cask session-manager-plugin 2>/dev/null || true + +# Remove unnecessary local taps (these cause warnings on GitHub runners) +brew untap homebrew/core 2>/dev/null || true +brew untap homebrew/cask 2>/dev/null || true + +# Clean up broken symlinks and outdated packages +brew cleanup 2>/dev/null || true + +# Update Homebrew brew update -brew doctor -brew install cmake -brew install python -brew install node@18 -export PATH="/usr/local/opt/node@18/bin:$PATH" -node -v + +# Only install cmake if not already present +if ! command -v cmake &> /dev/null; then + brew install cmake +fi + +# Verify cmake +cmake --version # Install module dependencies yarn install