forked from JetBrains/intellij-community
-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (51 loc) · 1.88 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build Sherlock Platform
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request_target:
branches: [ main ]
# 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: Cache local Maven repository
uses: actions/cache@v3.0.2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('build.txt') }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- 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 Sherlock Platform artifact for Linux
uses: actions/upload-artifact@v3
with:
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