11
11
# release:
12
12
# types: [prereleased]
13
13
14
- # defaults:
15
- # run:
16
- # working-directory: extensions/intellij
14
+ defaults :
15
+ run :
16
+ working-directory : extensions/intellij
17
17
18
18
concurrency :
19
19
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -59,40 +59,40 @@ jobs:
59
59
p12-password : ${{ secrets.APPLE_CERT_PASSWORD }}
60
60
61
61
# Validate wrapper
62
- # - name: Gradle Wrapper Validation
63
- # uses: gradle/actions/wrapper-validation@v3
62
+ - name : Gradle Wrapper Validation
63
+ uses : gradle/actions/wrapper-validation@v3
64
64
65
65
# # Set up Java environment for the next steps
66
- # - name: Setup Java
67
- # uses: actions/setup-java@v4
68
- # with:
69
- # distribution: zulu
70
- # java-version: 17
66
+ - name : Setup Java
67
+ uses : actions/setup-java@v4
68
+ with :
69
+ distribution : zulu
70
+ java-version : 17
71
71
72
72
# # Setup Gradle
73
- # - name: Setup Gradle
74
- # uses: gradle/actions/setup-gradle@v3
75
- # with:
76
- # gradle-home-cache-cleanup: true
73
+ - name : Setup Gradle
74
+ uses : gradle/actions/setup-gradle@v3
75
+ with :
76
+ gradle-home-cache-cleanup : true
77
77
78
- # # Set environment variables
79
- # - name: Export Properties
80
- # id: properties
81
- # shell: bash
82
- # run: |
83
- # PROPERTIES="$(./gradlew properties --console=plain -q)"
84
- # VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
85
- # # CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)"
86
- # CHANGELOG=""
78
+ # Set environment variables
79
+ - name : Export Properties
80
+ id : properties
81
+ shell : bash
82
+ run : |
83
+ PROPERTIES="$(./gradlew properties --console=plain -q)"
84
+ VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
85
+ # CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)"
86
+ CHANGELOG=""
87
87
88
- # echo "version=$VERSION" >> $GITHUB_OUTPUT
89
- # echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
88
+ echo "version=$VERSION" >> $GITHUB_OUTPUT
89
+ echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
90
90
91
- # echo "changelog<<EOF" >> $GITHUB_OUTPUT
92
- # echo "$CHANGELOG" >> $GITHUB_OUTPUT
93
- # echo "EOF" >> $GITHUB_OUTPUT
91
+ echo "changelog<<EOF" >> $GITHUB_OUTPUT
92
+ echo "$CHANGELOG" >> $GITHUB_OUTPUT
93
+ echo "EOF" >> $GITHUB_OUTPUT
94
94
95
- # ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
95
+ ./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
96
96
97
97
# # Setup Node.js
98
98
- name : Use Node.js from .nvmrc
@@ -113,29 +113,29 @@ jobs:
113
113
path : binary/node_modules
114
114
key : ${{ runner.os }}-node-${{ hashFiles('binary/package-lock.json') }}
115
115
116
- # - name: Cache gui node_modules
117
- # uses: actions/cache@v3
118
- # with:
119
- # path: gui/node_modules
120
- # key: ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }}
116
+ - name : Cache gui node_modules
117
+ uses : actions/cache@v3
118
+ with :
119
+ path : gui/node_modules
120
+ key : ${{ runner.os }}-node-${{ hashFiles('gui/package-lock.json') }}
121
121
122
122
# npm install core
123
123
- name : Install core node_modules
124
124
run : |
125
- cd core
125
+ cd ../../ core
126
126
npm ci
127
127
128
128
# npm install gui
129
- # - name: Install gui node_modules and build
130
- # run: |
131
- # cd ../../gui
132
- # npm ci
133
- # npm run build
129
+ - name : Install gui node_modules and build
130
+ run : |
131
+ cd ../../gui
132
+ npm ci
133
+ npm run build
134
134
135
135
# Run prepackage.js script
136
136
- name : Run prepackage script
137
137
run : |
138
- cd extensions/vscode
138
+ cd ../../ extensions/vscode
139
139
npm ci
140
140
npm run prepackage
141
141
env :
@@ -145,13 +145,13 @@ jobs:
145
145
# npm install binary
146
146
- name : Install binary node_modules
147
147
run : |
148
- cd binary
148
+ cd ../../ binary
149
149
npm ci
150
150
151
151
# Build binaries
152
152
- name : Build the binaries
153
153
run : |
154
- cd binary
154
+ cd ../../ binary
155
155
npm run build
156
156
157
157
# - name: Code sign darwin binaries
@@ -168,22 +168,6 @@ jobs:
168
168
# echo "Validating codesigning for darwin-arm64 binary"
169
169
# codesign -dv --verbose=4 ../../binary/bin/darwin-arm64/continue-binary
170
170
171
- - name : Upload artifact (darwin-arm64)
172
- uses : actions/upload-artifact@v4
173
- with :
174
- name : continue-binary-darwin-arm64
175
- path : ./binary/bin/darwin-arm64/
176
-
177
- - name : Upload artifact (darwin-x64)
178
- uses : actions/upload-artifact@v4
179
- with :
180
- name : continue-binary-darwin-x64
181
- path : ./binary/bin/darwin-x64/
182
-
183
- - name : Try to run the darwin-arm64 binary
184
- run : |
185
- ./binary/bin/darwin-arm64/continue-binary
186
-
187
171
# - name: Sign darwin-arm64 binary
188
172
# uses: lando/code-sign-action@v2
189
173
# with:
@@ -211,29 +195,29 @@ jobs:
211
195
# options: --options runtime --entitlements entitlements.xml
212
196
213
197
# Build plugin
214
- # - name: Build plugin
215
- # run: ./gradlew buildPlugin
198
+ - name : Build plugin
199
+ run : ./gradlew buildPlugin
216
200
217
- # # Prepare plugin archive content for creating artifact
218
- # - name: Prepare Plugin Artifact
219
- # id: artifact
220
- # shell: bash
221
- # run: |
222
- # cd ../../extensions/intellij/build/distributions
223
- # echo "Builds:"
224
- # ls
225
- # echo "---"
226
- # FILENAME=`ls *.zip`
227
- # unzip "$FILENAME" -d content
228
-
229
- # echo "filename=${FILENAME%.????}" >> $GITHUB_OUTPUT
230
-
231
- # # Store already-built plugin as an artifact for downloading
232
- # - name: Upload artifact
233
- # uses: actions/upload-artifact@v4
234
- # with:
235
- # name: ${{ steps.artifact.outputs.filename }}
236
- # path: ./extensions/intellij/build/distributions/content/*/*
201
+ # Prepare plugin archive content for creating artifact
202
+ - name : Prepare Plugin Artifact
203
+ id : artifact
204
+ shell : bash
205
+ run : |
206
+ cd ../../extensions/intellij/build/distributions
207
+ echo "Builds:"
208
+ ls
209
+ echo "---"
210
+ FILENAME=`ls *.zip`
211
+ unzip "$FILENAME" -d content
212
+
213
+ echo "filename=${FILENAME%.????}" >> $GITHUB_OUTPUT
214
+
215
+ # Store already-built plugin as an artifact for downloading
216
+ - name : Upload artifact
217
+ uses : actions/upload-artifact@v4
218
+ with :
219
+ name : ${{ steps.artifact.outputs.filename }}
220
+ path : ./extensions/intellij/build/distributions/content/*/*
237
221
238
222
# Upload binaries as artifacts
239
223
- name : Upload artifact (darwin-arm64)
0 commit comments