@@ -39,135 +39,6 @@ jobs:
3939 exit 1
4040 fi
4141
42- android-explorer-build :
43- timeout-minutes : 60
44- runs-on : lynx-ubuntu-22.04-large
45- needs : get-version
46- steps :
47- - name : Download Source
48- uses : actions/checkout@v4.2.2
49- with :
50- path : lynx
51- ref : ${{ github.event.inputs.commitId || github.ref }}
52- fetch-depth : 0
53- - name : Build Explorer App
54- uses : ./lynx/.github/actions/android-explorer-build
55- with :
56- abi-list : armeabi-v7a,x86,x86_64,arm64-v8a
57- - name : push to release
58- uses : ncipollo/release-action@v1
59- with :
60- tag : ${{ needs.get-version.outputs.version }}
61- token : ${{ secrets.GITHUB_TOKEN }}
62- artifacts : ' ${{ github.workspace }}/lynx/explorer/android/lynx_explorer/build/outputs/apk/noasan/release/LynxExplorer-noasan-release.apk'
63- allowUpdates : true
64- body : ' '
65-
66- ios-explorer-build :
67- timeout-minutes : 60
68- runs-on : lynx-darwin-14-medium
69- needs : get-version
70- strategy :
71- matrix :
72- arch : [arm64, x86_64]
73- steps :
74- - name : Download Source
75- uses : actions/checkout@v4.2.2
76- with :
77- path : lynx
78- ref : ${{ github.event.inputs.commitId || github.ref }}
79- fetch-depth : 0
80- - name : Build Explorer App
81- uses : ./lynx/.github/actions/ios-explorer-build
82- with :
83- build-arch : ${{ matrix.arch }}
84- - name : push explorer to release
85- uses : ncipollo/release-action@v1
86- with :
87- tag : ${{ needs.get-version.outputs.version }}
88- token : ${{ secrets.GITHUB_TOKEN }}
89- artifacts : ' ${{ github.workspace }}/lynx/LynxExplorer-${{ matrix.arch }}.app.tar.gz'
90- allowUpdates : true
91- body : ' '
92-
93- harmony-explorer-build :
94- runs-on : lynx-custom-container
95- container :
96- image : ghcr.io/lynx-family/ubuntu24.04-harmony@sha256:bf493c3710de3c44bfa84caf402c0727b9310c42497f6e52580ad441ea640ef1
97- credentials :
98- username : lynx-family
99- password : ${{ secrets.GITHUB_TOKEN }}
100- needs : get-version
101- defaults :
102- run :
103- working-directory : ${{ github.workspace }}
104- shell : bash
105- steps :
106- - name : Download Source
107- uses : actions/checkout@v4.2.2
108- with :
109- path : lynx
110- ref : ${{ github.event.inputs.commitId || github.ref }}
111- fetch-depth : 0
112- - name : Build Explorer App
113- uses : ./lynx/.github/actions/harmony-explorer-build
114- - name : push explorer to release
115- uses : ncipollo/release-action@v1
116- with :
117- tag : ${{ needs.get-version.outputs.version }}
118- token : ${{ secrets.GITHUB_TOKEN }}
119- artifacts : ' ${{ github.workspace }}/lynx/explorer/harmony/lynx_explorer/build/default/outputs/default/lynx_explorer-default-unsigned.hap'
120- allowUpdates : true
121- body : ' '
122-
123- android-sdk-release :
124- runs-on : ubuntu-22.04
125- needs : get-version
126- timeout-minutes : 240
127- steps :
128- - name : Download Source
129- uses : actions/checkout@v4.2.2
130- with :
131- path : lynx
132- ref : ${{ github.event.inputs.commitId || github.ref }}
133- fetch-depth : 0
134- - name : Free up disk space
135- uses : ./lynx/.github/actions/free-android-disk
136- - name : Python Setup
137- uses : actions/setup-python@v5
138- with :
139- python-version : ' 3.13'
140- - name : Setup Android environment
141- uses : ./lynx/.github/actions/setup-android-env
142- - name : Install Common Dependencies
143- uses : ./lynx/.github/actions/common-deps
144- with :
145- cache-backend : ' github'
146- - name : Android SDK Release
147- uses : ./lynx/.github/actions/android-sdk-release
148- with :
149- version : ${{ needs.get-version.outputs.version }}
150- signingKeyId : ${{ secrets.SIGNING_KEY_ID }}
151- signingPassword : ${{ secrets.SIGNING_PASSWORD }}
152- signingSecretKey : ${{ secrets.SIGNING_SECRET_KEY }}
153- abiList : ' armeabi-v7a,x86,x86_64,arm64-v8a'
154- - name : Package maven artifacts
155- run : |-
156- cd $GITHUB_WORKSPACE/lynx
157- pushd platform/android
158- ./gradlew zipArtifacts -Pversion=${{ needs.get-version.outputs.version }} getArtifactList
159- popd
160- pushd platform/android/build
161- artifact_list=$(<artifact-list)
162- echo "::set-output name=artifact_list::$artifact_list"
163- popd
164- id : build_artifact
165- - name : Publish artifact to maven
166- uses : lynx-infra/maven-publish-action@53b4da2f23f9cfc4e905b135eda2724fcf5a0f0e
167- with :
168- portal_api_token : ${{ secrets.PORTAL_API_TOKEN }}
169- artifact_path_list : ${{ steps.build_artifact.outputs.artifact_list }}
170-
17142 ios-sdk-publish :
17243 timeout-minutes : 60
17344 runs-on : macos-14
@@ -195,158 +66,53 @@ jobs:
19566 uses : ./lynx/.github/actions/ios-common-deps
19667 with :
19768 cache-backend : ' github'
198- - name : Publish iOS SDK
69+ - name : Publish iOS SDK Lynx
19970 uses : ./lynx/.github/actions/ios-sdk-publish
20071 with :
20172 version : ${{ needs.get-version.outputs.version }}
20273 tag : ${{ needs.get-version.outputs.version }}
20374 cocoapods_trunk_token : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
20475 github_token : ${{ secrets.GITHUB_TOKEN }}
205- component : all
206- - name : Publish iOS dev SDK
76+ component : Lynx
77+ - name : Publish iOS SDK BaseDevtool
20778 uses : ./lynx/.github/actions/ios-sdk-publish
208- env :
209- LYNX_ENABLE_RECORDER : 1
21079 with :
211- version : ${{ needs.get-version.outputs.version }}-dev
80+ version : ${{ needs.get-version.outputs.version }}
21281 tag : ${{ needs.get-version.outputs.version }}
21382 cocoapods_trunk_token : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
21483 github_token : ${{ secrets.GITHUB_TOKEN }}
215- component : all
216-
217- harmony-sdk-publish :
218- name : Publish Harmony SDK (${{ matrix.label }})
219- runs-on : lynx-custom-container
220- container :
221- image : ghcr.io/lynx-family/ubuntu24.04-harmony@sha256:25913874dad0557526b44f9c9ab30b9873080009db85bb569d718d2bb5f0e074
222- credentials :
223- username : lynx-family
224- password : ${{ secrets.GITHUB_TOKEN }}
225- defaults :
226- run :
227- shell : bash
228- needs : get-version
229- strategy :
230- matrix :
231- include :
232- - version_suffix : ' '
233- modules : ' default'
234- build_param : ' '
235- label : ' formal'
236- - version_suffix : ' -dev'
237- modules : ' lynx lynx_devtool lynx_base'
238- build_param : ' --dev'
239- label : ' dev'
240- steps :
241- - name : Install Rust toolchain
242- uses : actions-rs/toolchain@v1
243- with :
244- toolchain : stable
245- profile : minimal
246- override : true
247- - name : Install git-cliff
248- run : |
249- cargo install git-cliff --locked
250- git-cliff --version
251- - name : Download Source
252- uses : actions/checkout@v4.2.2
253- with :
254- path : lynx
255- fetch-depth : 0
256- fetch-tags : true
257- ref : ${{ github.event.inputs.commitId || github.ref }}
258- - name : Get latest tag
259- id : get-latest-tag
260- uses : ./lynx/.github/actions/get-latest-tag
261- with :
262- current-tag : ${{ needs.get-version.outputs.version }}
263- - name : Install Common Dependencies
264- uses : ./lynx/.github/actions/common-deps
265- with :
266- cache-key-prefix : ' -container'
267- - name : Generate Change Log
268- run : |
269- cd $GITHUB_WORKSPACE/lynx
270- source tools/envsetup.sh
271- COMMIT_ID=$(git rev-list -n 1 ${{ steps.get-latest-tag.outputs.latest-tag }})
272- python3 explorer/harmony/script/generate_changelog.py --version ${{ needs.get-version.outputs.version }}${{ matrix.version_suffix }} --modules ${{ matrix.modules }} --base_commit $COMMIT_ID
273- - name : Build Harmony SDK
274- run : |
275- cd $GITHUB_WORKSPACE/lynx
276- source tools/envsetup.sh
277- pushd platform/harmony && ohpm install && popd
278- pushd explorer/harmony && ohpm install && popd
279- python3 explorer/harmony/script/build.py ${{ matrix.build_param }} --build_lynx_core --build_har --modules ${{ matrix.modules }} --override_version ${{ needs.get-version.outputs.version }}${{ matrix.version_suffix }}
280- - name : Publish Harmony SDK
281- run : |
282- cd $GITHUB_WORKSPACE/lynx
283- source tools/envsetup.sh
284- export PUBLISH_KEY_PASSPHRASE=${{ secrets.HARMONY_PUBLISH_KEY_PASSPHRASE }}
285- cat << EOF > publish_key
286- ${{ secrets.HARMONY_PUBLISH_KEY }}
287- EOF
288- ohpm config set publish_registry https://ohpm.openharmony.cn/ohpm
289- export PUBLISH_ID=${{ secrets.HARMONY_PUBLISH_ID }}
290- export KEY_PATH=$GITHUB_WORKSPACE/lynx/publish_key
291- python3 explorer/harmony/script/publish.py --modules ${{ matrix.modules }} --version ${{ needs.get-version.outputs.version }}${{ matrix.version_suffix }}
292-
293- macos-explorer-release :
294- timeout-minutes : 60
295- runs-on : lynx-darwin-14-medium
296- needs : get-version
297- strategy :
298- matrix :
299- arch : [arm64, x64]
300- steps :
301- - name : Download Source
302- uses : actions/checkout@v4.2.2
303- with :
304- path : lynx
305- ref : ${{ github.event.inputs.commitId || github.ref }}
306- fetch-depth : 0
307- - name : Build macOS Explorer
308- uses : ./lynx/.github/actions/macos-explorer-build
309- with :
310- build-arch : ${{ matrix.arch }}
311- - name : push explorer to release
312- uses : ncipollo/release-action@v1
84+ component : BaseDevtool
85+ - name : Publish iOS SDK LynxDevtool
86+ uses : ./lynx/.github/actions/ios-sdk-publish
31387 with :
88+ version : ${{ needs.get-version.outputs.version }}
31489 tag : ${{ needs.get-version.outputs.version }}
315- token : ${{ secrets.GITHUB_TOKEN }}
316- artifacts : ' ${{ github.workspace }}/lynx/LynxExplorer-macos-${{ matrix.arch }}.app.tar.gz,${{ github.workspace }}/lynx/out/Default/lynx_sdk_macos_${{ matrix.arch }}.zip'
317- allowUpdates : true
318- body : ' '
319-
320- windows-explorer-release :
321- timeout-minutes : 60
322- runs-on : lynx-windows-2022-large
323- needs : get-version
324- strategy :
325- matrix :
326- arch : [x86, x64]
327- steps :
328- - name : Configure Git
329- shell : PowerShell
330- run : |
331- git config --global core.autocrlf false
332- git config --global core.eol lf
333- git config --global http.sslBackend "schannel"
334- working-directory : ./
335- - name : Download Source
336- uses : actions/checkout@v4.2.2
90+ cocoapods_trunk_token : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
91+ github_token : ${{ secrets.GITHUB_TOKEN }}
92+ component : LynxDevtool
93+ - name : Publish iOS SDK LynxService
94+ uses : ./lynx/.github/actions/ios-sdk-publish
33795 with :
338- path : lynx
339- ref : ${{ github.event.inputs.commitId || github.ref }}
340- fetch-depth : 0
341- - name : Build windows Explorer
342- uses : ./lynx/.github/actions/windows-explorer-build
96+ version : ${{ needs.get-version.outputs.version }}
97+ tag : ${{ needs.get-version.outputs.version }}
98+ cocoapods_trunk_token : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
99+ github_token : ${{ secrets.GITHUB_TOKEN }}
100+ component : LynxService
101+ - name : Publish iOS SDK XElement
102+ uses : ./lynx/.github/actions/ios-sdk-publish
343103 with :
344- build-arch : ${{ matrix.arch }}
345- - name : push explorer to release
346- uses : ncipollo/release-action@v1
104+ version : ${{ needs.get-version.outputs.version }}
105+ tag : ${{ needs.get-version.outputs.version }}
106+ cocoapods_trunk_token : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
107+ github_token : ${{ secrets.GITHUB_TOKEN }}
108+ component : XElement
109+ - name : Publish iOS dev SDK
110+ uses : ./lynx/.github/actions/ios-sdk-publish
111+ env :
112+ LYNX_ENABLE_RECORDER : 1
347113 with :
114+ version : ${{ needs.get-version.outputs.version }}-dev
348115 tag : ${{ needs.get-version.outputs.version }}
349- token : ${{ secrets.GITHUB_TOKEN }}
350- artifacts : ' ${{ github.workspace }}/lynx/LynxExplorer-windows-${{ matrix.arch }}.tar.gz,${{ github.workspace }}/lynx/out/Default/lynx_sdk_windows_${{ matrix.arch }}.zip'
351- allowUpdates : true
352- body : ' '
116+ cocoapods_trunk_token : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
117+ github_token : ${{ secrets.GITHUB_TOKEN }}
118+ component : all
0 commit comments