-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
36 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,44 +6,35 @@ on: | |
paths: | ||
- "**/workflows-trigger.properties" | ||
|
||
jobs: | ||
env: | ||
PACKAGE_VERSION: 1.0.0 | ||
V_PACKAGE_VERSION: v1.0.0 | ||
|
||
current-time: | ||
runs-on: ubuntu-latest | ||
name: get current time | ||
outputs: | ||
currentTime: ${{steps.currentTime.outputs.formattedTime}} | ||
steps: | ||
- id: currentTime | ||
uses: josStorer/get-current-time@v2 | ||
with: | ||
format: YYYY.MM.DD | ||
utcOffset: "+08:00" | ||
jobs: | ||
|
||
create-release-distribution: | ||
strategy: | ||
matrix: | ||
os: [ windows-latest , ubuntu-latest , macos-13 , macos-14 ] | ||
runs-on: ${{ matrix.os }} | ||
name: create release distribution | ||
needs: current-time | ||
|
||
steps: | ||
- if: matrix.os != 'macos-14' | ||
name: setup jdk | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: "18" | ||
distribution: "zulu" | ||
java-version: "18" | ||
architecture: x64 | ||
|
||
- if: matrix.os == 'macos-14' | ||
name: setup jdk | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: "18" | ||
distribution: "zulu" | ||
architecture: aarch64 | ||
java-version: "18" | ||
architecture: x64 | ||
|
||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -57,40 +48,46 @@ jobs: | |
- if: matrix.os == 'windows-latest' | ||
name: rename File | ||
run: | | ||
mv ./build/compose/binaries/main-release/exe/compose-multiplatform-xlog-decode-1.0.0.exe ./build/compose/binaries/main-release/exe/compose-multiplatform-xlog-decode-windows-x64.exe | ||
mv ./build/compose/binaries/main-release/exe/compose-multiplatform-xlog-decode-${{env.PACKAGE_VERSION}}.exe ./build/compose/binaries/main-release/exe/compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-windows-x86-64.exe | ||
- if: matrix.os == 'windows-latest' | ||
name: zip AppImage | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: "zip" | ||
filename: "compose-multiplatform-xlog-decode-windows-x64.zip" | ||
filename: "compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-windows-x86-64.zip" | ||
directory: "./build/compose/binaries/main-release/app/compose-multiplatform-xlog-decode" | ||
|
||
- if: matrix.os == 'ubuntu-latest' | ||
name: rename File | ||
run: | | ||
mv /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/deb/compose-multiplatform-xlog-decode_1.0.0_amd64.deb /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/deb/compose-multiplatform-xlog-decode-linux-amd64.deb | ||
mv /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/rpm/compose-multiplatform-xlog-decode-1.0.0-1.x86_64.rpm /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/rpm/compose-multiplatform-xlog-decode-linux-x86_64.rpm | ||
mv /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/rpm/compose-multiplatform-xlog-decode-${{env.PACKAGE_VERSION}}-1.x86_64.rpm /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/rpm/compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-linux-x86-64.rpm | ||
mv /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/deb/compose-multiplatform-xlog-decode_${{env.PACKAGE_VERSION}}_amd64.deb /home/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/deb/compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-linux-amd64.deb | ||
- if: matrix.os == 'macos-13' | ||
name: rename File | ||
run: | | ||
mv /Users/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/dmg/compose-multiplatform-xlog-decode-1.0.0.dmg /Users/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/dmg/compose-multiplatform-xlog-decode-mac-x64.dmg | ||
mv /Users/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/dmg/compose-multiplatform-xlog-decode-${{env.PACKAGE_VERSION}}.dmg /Users/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/dmg/compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-macos-x86-64.dmg | ||
- if: matrix.os == 'macos-14' | ||
name: rename File | ||
run: | | ||
mv /Users/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/dmg/compose-multiplatform-xlog-decode-1.0.0.dmg /Users/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/dmg/compose-multiplatform-xlog-decode-mac-arm64.dmg | ||
mv /Users/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/dmg/compose-multiplatform-xlog-decode-${{env.PACKAGE_VERSION}}.dmg /Users/runner/work/compose-multiplatform-xlog-decode/compose-multiplatform-xlog-decode/build/compose/binaries/main-release/dmg/compose-multiplatform-xlog-decode-${{env.V_PACKAGE_VERSION}}-macos-arm64.dmg | ||
- name: get current time | ||
id: currentTime | ||
uses: josStorer/get-current-time@v2 | ||
with: | ||
format: YYYY-MM-DD | ||
|
||
- name: create a release | ||
- name: draft a new release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "**/compose-multiplatform-xlog-decode-windows-x64.exe,**/compose-multiplatform-xlog-decode-windows-x64.zip,**/*.deb,**/*.rpm,**/*.dmg" | ||
body: "create by workflows" | ||
token: ${{secrets.ACTION_TOKEN}} | ||
allowUpdates: true | ||
artifactErrorsFailBuild: false | ||
generateReleaseNotes: false | ||
tag: ${{needs.current-time.outputs.currentTime}} | ||
name: ${{needs.current-time.outputs.currentTime}} | ||
token: ${{secrets.ACTION_TOKEN}} | ||
artifacts: "**/exe/*.exe,**/app/compose-multiplatform-xlog-decode/*.zip,**/deb/*.deb,**/rpm/*.rpm,**/dmg/*.dmg" | ||
body: "## ${{env.V_PACKAGE_VERSION}} / ${{steps.currentTime.outputs.formattedTime}}" | ||
tag: "${{env.V_PACKAGE_VERSION}}" | ||
name: "${{env.V_PACKAGE_VERSION}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# compose-multiplatform-xlog-decode | ||
|
||
一个跨平台的 xlog 日志解析工具,支持 Windows、MacOS、Linux | ||
|
||
- [Compose Multiplatform 写一个跨平台的 xlog 解析工具](https://juejin.cn/post/7378452954221084682) | ||
|
||
![](https://github.com/leavesCZY/compose-multiplatform-xlog-decode/assets/30774063/57187495-9dd6-4644-afb6-154c31944a40) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
trigger=1 | ||
trigger=2 |