-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch to remove so version; compare hap content (#10)
- Loading branch information
1 parent
c270b73
commit a397560
Showing
4 changed files
with
140 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Compare | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
compare: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install bsdtar | ||
run: | | ||
sudo apt install -y libarchive-tools | ||
sudo ln -sf /usr/bin/bsdtar /usr/bin/tar | ||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
merge-multiple: true | ||
|
||
- name: Compare content | ||
run: | | ||
for arch in arm64-v8a x86_64; do | ||
wget -O release-$arch.hap https://github.com/fcitx-contrib/fcitx5-harmony/releases/download/latest/fcitx5-harmony-$arch.hap | ||
tar tf release-$arch.hap > release-$arch.list | ||
echo "## $arch comparison" >> summary.md | ||
tar tf fcitx5-harmony-$arch.hap > $arch.list | ||
diff -u release-$arch.list $arch.list > $arch.diff || true | ||
if [[ -s $arch.diff ]]; then | ||
echo '```diff' >> summary.md | ||
cat $arch.diff >> summary.md | ||
echo '```' >> summary.md | ||
else | ||
echo "No difference." >> summary.md | ||
fi | ||
done | ||
- name: Find comment | ||
uses: peter-evans/find-comment@v3 | ||
id: fc | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
comment-author: 'github-actions[bot]' | ||
body-includes: "x86_64 comparison" | ||
|
||
- name: Create or update comment | ||
uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
comment-id: ${{ steps.fc.outputs.comment-id }} | ||
body-path: summary.md | ||
edit-mode: replace |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
diff --git a/src/libime/core/CMakeLists.txt b/src/libime/core/CMakeLists.txt | ||
index d51e732..14fe6b2 100644 | ||
--- a/src/libime/core/CMakeLists.txt | ||
+++ b/src/libime/core/CMakeLists.txt | ||
@@ -71,8 +71,7 @@ set(IMECore_SOVERSION 0) | ||
|
||
add_library(IMECore ${LIBIME_SRCS}) | ||
set_target_properties(IMECore | ||
- PROPERTIES VERSION ${IMECore_VERSION} | ||
- SOVERSION ${IMECore_SOVERSION} | ||
+ PROPERTIES | ||
EXPORT_NAME Core | ||
) | ||
target_include_directories(IMECore PUBLIC | ||
diff --git a/src/libime/pinyin/CMakeLists.txt b/src/libime/pinyin/CMakeLists.txt | ||
index 96fcbbb..e18a5d0 100644 | ||
--- a/src/libime/pinyin/CMakeLists.txt | ||
+++ b/src/libime/pinyin/CMakeLists.txt | ||
@@ -34,8 +34,6 @@ set(IMEPinyin_SOVERSION 0) | ||
|
||
add_library(IMEPinyin ${LIBIME_PINYIN_SRCS}) | ||
set_target_properties(IMEPinyin PROPERTIES | ||
- VERSION ${IMEPinyin_VERSION} | ||
- SOVERSION ${IMEPinyin_SOVERSION} | ||
EXPORT_NAME Pinyin | ||
) | ||
target_include_directories(IMEPinyin PUBLIC | ||
diff --git a/src/libime/table/CMakeLists.txt b/src/libime/table/CMakeLists.txt | ||
index 620a6ee..5eea112 100644 | ||
--- a/src/libime/table/CMakeLists.txt | ||
+++ b/src/libime/table/CMakeLists.txt | ||
@@ -25,8 +25,7 @@ set(IMETable_SOVERSION 0) | ||
|
||
add_library(IMETable ${LIBIME_TABLE_SRCS}) | ||
set_target_properties(IMETable | ||
- PROPERTIES VERSION ${IMETable_VERSION} | ||
- SOVERSION ${IMETable_SOVERSION} | ||
+ PROPERTIES | ||
EXPORT_NAME Table | ||
) | ||
|