diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index 1baa12202..9520c4823 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -11,9 +11,9 @@ on: # release: # types: [prereleased] -defaults: - run: - working-directory: extensions/intellij +# defaults: +# run: +# working-directory: extensions/intellij concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -58,62 +58,47 @@ jobs: p12-file-base64: ${{ secrets.APPLE_CERT_DATA }} p12-password: ${{ secrets.APPLE_CERT_PASSWORD }} - # - name: Download artifact - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # OWNER: continuedev - # REPO: continue - # ARTIFACT_ID: 1822461754 - # run: | - # curl -L \ - # -H "Authorization: token $GITHUB_TOKEN" \ - # -H "Accept: application/vnd.github+json" \ - # -o artifact.zip \ - # "https://api.github.com/repos/continuedev/continue/actions/artifacts/1822461754/zip" - # unzip artifact.zip - # shell: bash - # Validate wrapper - - name: Gradle Wrapper Validation - uses: gradle/actions/wrapper-validation@v3 + # - name: Gradle Wrapper Validation + # uses: gradle/actions/wrapper-validation@v3 - # Set up Java environment for the next steps - - name: Setup Java - uses: actions/setup-java@v4 - with: - distribution: zulu - java-version: 17 + # # Set up Java environment for the next steps + # - name: Setup Java + # uses: actions/setup-java@v4 + # with: + # distribution: zulu + # java-version: 17 - # Setup Gradle - - name: Setup Gradle - uses: gradle/actions/setup-gradle@v3 - with: - gradle-home-cache-cleanup: true + # # Setup Gradle + # - name: Setup Gradle + # uses: gradle/actions/setup-gradle@v3 + # with: + # gradle-home-cache-cleanup: true - # Set environment variables - - name: Export Properties - id: properties - shell: bash - run: | - PROPERTIES="$(./gradlew properties --console=plain -q)" - VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')" - # CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)" - CHANGELOG="" + # # Set environment variables + # - name: Export Properties + # id: properties + # shell: bash + # run: | + # PROPERTIES="$(./gradlew properties --console=plain -q)" + # VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')" + # # CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)" + # CHANGELOG="" - echo "version=$VERSION" >> $GITHUB_OUTPUT - echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT + # echo "version=$VERSION" >> $GITHUB_OUTPUT + # echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT - echo "changelog<> $GITHUB_OUTPUT - echo "$CHANGELOG" >> $GITHUB_OUTPUT - echo "EOF" >> $GITHUB_OUTPUT + # echo "changelog<> $GITHUB_OUTPUT + # echo "$CHANGELOG" >> $GITHUB_OUTPUT + # echo "EOF" >> $GITHUB_OUTPUT - ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier + # ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier - # Setup Node.js - - name: Use Node.js from .nvmrc - uses: actions/setup-node@v4 - with: - node-version-file: ".nvmrc" + # # Setup Node.js + # - name: Use Node.js from .nvmrc + # uses: actions/setup-node@v4 + # with: + # node-version-file: ".nvmrc" # Cache node_modules - name: Cache core node_modules @@ -128,11 +113,11 @@ jobs: path: binary/node_modules key: ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }} - - name: Cache gui node_modules - uses: actions/cache@v3 - with: - path: gui/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }} + # - name: Cache gui node_modules + # uses: actions/cache@v3 + # with: + # path: gui/node_modules + # key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }} # npm install core - name: Install core node_modules @@ -141,21 +126,21 @@ jobs: npm ci # npm install gui - - name: Install gui node_modules and build - run: | - cd ../../gui - npm ci - npm run build + # - name: Install gui node_modules and build + # run: | + # cd ../../gui + # npm ci + # npm run build # Run prepackage.js script - - name: Run prepackage script - run: | - cd ../../extensions/vscode - npm ci - npm run prepackage - env: - # https://github.com/microsoft/vscode-ripgrep/issues/9#issuecomment-643965333 - GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} + # - name: Run prepackage script + # run: | + # cd ../../extensions/vscode + # npm ci + # npm run prepackage + # env: + # # https://github.com/microsoft/vscode-ripgrep/issues/9#issuecomment-643965333 + # GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} # npm install binary - name: Install binary node_modules @@ -183,6 +168,10 @@ jobs: echo "Validating codesigning for darwin-arm64 binary" codesign -dv --verbose=4 ../../binary/bin/darwin-arm64/continue-binary + - name: Try to run the darwin-arm64 binary + run: | + ../../binary/bin/darwin-arm64/continue-binary + # - name: Sign darwin-arm64 binary # uses: lando/code-sign-action@v2 # with: @@ -210,29 +199,29 @@ jobs: # options: --options runtime --entitlements entitlements.xml # Build plugin - - name: Build plugin - run: ./gradlew buildPlugin + # - name: Build plugin + # run: ./gradlew buildPlugin - # Prepare plugin archive content for creating artifact - - name: Prepare Plugin Artifact - id: artifact - shell: bash - run: | - cd ../../extensions/intellij/build/distributions - echo "Builds:" - ls - echo "---" - FILENAME=`ls *.zip` - unzip "$FILENAME" -d content + # # Prepare plugin archive content for creating artifact + # - name: Prepare Plugin Artifact + # id: artifact + # shell: bash + # run: | + # cd ../../extensions/intellij/build/distributions + # echo "Builds:" + # ls + # echo "---" + # FILENAME=`ls *.zip` + # unzip "$FILENAME" -d content - echo "filename=${FILENAME%.????}" >> $GITHUB_OUTPUT + # echo "filename=${FILENAME%.????}" >> $GITHUB_OUTPUT - # Store already-built plugin as an artifact for downloading - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: ${{ steps.artifact.outputs.filename }} - path: ./extensions/intellij/build/distributions/content/*/* + # # Store already-built plugin as an artifact for downloading + # - name: Upload artifact + # uses: actions/upload-artifact@v4 + # with: + # name: ${{ steps.artifact.outputs.filename }} + # path: ./extensions/intellij/build/distributions/content/*/* # Upload binaries as artifacts - name: Upload artifact (darwin-arm64)