-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (53 loc) · 1.92 KB
/
build-plugin.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
name: build plugin
on:
workflow_dispatch:
jobs:
generate-build-number:
runs-on: ubuntu-latest
outputs:
build_number: ${{ steps.buildnumber.outputs.build_number }}
steps:
- name: Generate build number
uses: einaregilsson/build-number@v3
id: buildnumber
with:
token: ${{ secrets.github_token }}
prefix: rust
build-native-code:
uses: ./.github/workflows/build-native-code.yml
with:
rust-version: stable
cache: false
build:
needs: [ generate-build-number, build-native-code ]
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
platform-version: [ 241 ]
env:
ORG_GRADLE_PROJECT_buildNumber: ${{ needs.generate-build-number.outputs.build_number }}
ORG_GRADLE_PROJECT_platformVersion: ${{ matrix.platform-version }}
ORG_GRADLE_PROJECT_enableBuildSearchableOptions: true
ORG_GRADLE_PROJECT_compileNativeCode: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 17
- name: Load native binaries
uses: ./.github/actions/load-native-binaries
- name: Build rust plugin
uses: gradle/gradle-build-action@v3
with:
arguments: ":plugin:buildPlugin"
gradle-home-cache-excludes: |
caches/modules-2/files-2.1/com.jetbrains.intellij.idea
- name: Save artifacts
uses: actions/upload-artifact@v4
with:
name: intellij-rust
path: plugin/build/distributions/*.zip