-
Notifications
You must be signed in to change notification settings - Fork 100
62 lines (51 loc) · 1.58 KB
/
build.yaml
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
name: Build, IntelliJ-Haxe-plugin
on:
push:
branches:
- 'master'
- 'develop'
- 'feature/*'
pull_request:
branches:
- 'master'
- 'develop'
- 'feature/*'
jobs:
Build:
strategy:
fail-fast: false # set this to true if you want to cancel all builds if one fails.
matrix:
IDEA_VERSION: [2024.1]
OS: [macos-13, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.OS }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Set up Haxe
uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.3.4
- name: Test haxe
run: haxe -version
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Cache intelliJ downloads
uses: actions/cache@v3
with:
path: $GITHUB_WORKSPACE/idea
key: ${{ matrix.IDEA_VERSION }}-idea-${{ hashFiles('ideaIU-${{ matrix.IDEA_VERSION }}/**') }}
restore-keys: ${{ matrix.IDEA_VERSION }}-idea
- name: Build with Gradle (windows)
if: ${{ matrix.os == 'windows-latest'}}
run: .\gradlew.bat clean test buildPlugin verifyPlugin
- name: Build with Gradle (linux/mac)
if: ${{ matrix.os != 'windows-latest'}}
run: ./gradlew clean test buildPlugin verifyPlugin