From 0807254f370fc4f8ab0dfdef9d370780741b3a78 Mon Sep 17 00:00:00 2001 From: Sonakshi Saxena Date: Fri, 1 Nov 2024 18:06:54 +0000 Subject: [PATCH] Setup GitHub actions to build IntelliJ Platform. #15 --- .github/workflows/build.yml | 35 +++++++++++++++---- .../intellij/build/SherlockProperties.kt | 2 +- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e7fbf92aa84e4..e48db765cf56f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,10 +2,13 @@ name: Build Sherlock Platform on: # Triggers the workflow on push or pull request events but only for the idea/242.21829.142 branch - #push: - # branches: [ idea/242.21829.142 ] - #pull_request: - # branches: [ idea/242.21829.142 ] + # TODO: Update the branch once finalised + push: + branches: + - '*' + pull_request: + branches: + - '*' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -33,8 +36,26 @@ jobs: - name: Build Sherlock Platform run: ./build_sherlock_platform.sh - - name: Upload artifact + - name: Upload Sherlock Platform artifact for Linux uses: actions/upload-artifact@v3 with: - name: sherlock-platform - path: out/sherlock-platform/artifacts/sherlock-platform-242.21829.tar.gz \ No newline at end of file + name: sherlock-platform-linux + path: out/sherlock-platform/artifacts/sherlock-platform.tar.gz + + - name: Upload Sherlock Platform artifact for Mac + uses: actions/upload-artifact@v3 + with: + name: sherlock-platform-mac + path: out/sherlock-platform/artifacts/sherlock-platform.mac.aarch64.zip + + - name: Upload Sherlock Platform artifact for Windows + uses: actions/upload-artifact@v3 + with: + name: sherlock-platform-win + path: out/sherlock-platform/artifacts/sherlock-platform.win.zip + + - name: Upload Sherlock Platform Sources + uses: actions/upload-artifact@v3 + with: + name: sherlock-platform-sources + path: out/sherlock-platform/artifacts/sherlock-platform-sources.zip \ No newline at end of file diff --git a/platform/build-scripts/src/org/jetbrains/intellij/build/SherlockProperties.kt b/platform/build-scripts/src/org/jetbrains/intellij/build/SherlockProperties.kt index 9609eee68f5d1..cf39cc6941c7d 100644 --- a/platform/build-scripts/src/org/jetbrains/intellij/build/SherlockProperties.kt +++ b/platform/build-scripts/src/org/jetbrains/intellij/build/SherlockProperties.kt @@ -40,7 +40,7 @@ class SherlockProperties(home: Path) : BaseIdeaProperties() { override val baseFileName: String = "sherlock-platform" - override fun getBaseArtifactName(appInfo: ApplicationInfoProperties, buildNumber: String): String = "sherlock-platform-$buildNumber" + override fun getBaseArtifactName(appInfo: ApplicationInfoProperties, buildNumber: String): String = "sherlock-platform" override fun getSystemSelector(appInfo: ApplicationInfoProperties, buildNumber: String): String = "SherlockPlatform"