From 2936b24acad058fa649003307c7989baf3485e1e Mon Sep 17 00:00:00 2001 From: Sonakshi Saxena Date: Fri, 1 Nov 2024 16:31:49 +0000 Subject: [PATCH] Setup GitHub actions to build IntelliJ Platform. --- .github/workflows/build.yml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000000..61376ceba2888 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +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 ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' 1 + + - name: Set JAVA_HOME + run: echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV + + - name: Grant execute permission to build script + run: chmod +x ./build_sherlock_platform.sh + + - name: Build Sherlock Platform + run: ./build_sherlock_platform.sh + + - name: Upload artifact + 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