Skip to content

Commit e39ef61

Browse files
committed
CI: modify build.yml
1 parent f709045 commit e39ef61

File tree

4 files changed

+24
-13
lines changed

4 files changed

+24
-13
lines changed

.github/workflows/android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-24.04
3333

3434
env:
35-
Calendar_VERSION: v1.0.20
35+
Calendar_VERSION: v1.0.21
3636
VCPKGGITCOMMITID: 9f5925e81bbcd9c8c34cc7a8bd25e3c557b582b2
3737
VCPKG_TARGET_TRIPLET: ${{matrix.VCPKG_TARGET_TRIPLET}}
3838
VCPKG_DEFAULT_TRIPLET: ${{matrix.VCPKG_TARGET_TRIPLET}}

.github/workflows/appimage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
echo "MD5SUM Calendar_${{env.Calendar_VERSION}}_$ARCH.AppImage: ${MD5SUM}"
115115
echo "Generate update configure file ......"
116116
./Calendar_${{env.Calendar_VERSION}}_$ARCH.AppImage \
117-
-f "${{github.workspace}}/update_appimage_${{matrix.qt_arch}}_qt${{matrix.qt_version}}.json" \
117+
-f "${{github.workspace}}/update_appimage_${{matrix.os}}_${{matrix.qt_arch}}_${{matrix.BUILD_TYPE}}.json" \
118118
--foc 1 \
119119
--file-name Calendar_${{env.Calendar_VERSION}}_$ARCH.AppImage \
120120
-u "https://github.com/KangLin/Calendar/releases/download/${{env.Calendar_VERSION}}/Calendar_${{env.Calendar_VERSION}}_${ARCH}.AppImage;https://sourceforge.net/projects/Calendar/files/${{env.Calendar_VERSION}}/Calendar_${{env.Calendar_VERSION}}_${ARCH}.AppImage" \
@@ -128,4 +128,4 @@ jobs:
128128
name: ${{ env.artifact_name }}
129129
path: |
130130
${{github.workspace}}/Calendar_${{env.Calendar_VERSION}}_*.AppImage
131-
${{github.workspace}}/update_appimage_${{matrix.qt_arch}}_qt${{matrix.qt_version}}.json
131+
${{github.workspace}}/update_appimage_${{matrix.os}}_${{matrix.qt_arch}}_${{matrix.BUILD_TYPE}}.json

.github/workflows/build.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: build
55
env:
66
artifact_path: artifact_path
77
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8-
Calendar_VERSION: v1.0.21
8+
Calendar_VERSION: v1.0.20
99

1010
on:
1111
push:
@@ -35,7 +35,7 @@ jobs:
3535
deploy:
3636
if: ${{ startsWith(github.ref, 'refs/tags/') }}
3737
runs-on: ubuntu-latest
38-
needs: [ubuntu, msvc, macos, android]
38+
needs: [ubuntu, appimage, msvc, macos, android]
3939
steps:
4040
- name: Checkout Repository
4141
uses: actions/checkout@v3
@@ -49,6 +49,13 @@ jobs:
4949
path: ${{ env.artifact_path }}
5050
merge-multiple: true
5151

52+
- name: Download appimage
53+
uses: actions/download-artifact@v4
54+
with:
55+
name: ${{ needs.appimage.outputs.name }}
56+
path: ${{ env.artifact_path }}
57+
merge-multiple: true
58+
5259
- name: Download msvc
5360
uses: actions/download-artifact@v4
5461
with:
@@ -73,33 +80,37 @@ jobs:
7380
- name: Process configure file
7481
run: |
7582
git clone https://github.com/KangLin/RabbitCommon.git
83+
ls
84+
echo "ls "${{ github.workspace }}"
85+
ls "${{ github.workspace }}
86+
echo "ls ${{ env.artifact_path }}"
87+
ls ${{ env.artifact_path }}
7688
./RabbitCommon/Install/MergeJsonFile.sh \
7789
"${{ github.workspace }}/update.json" \
7890
"${{ env.artifact_path }}" "${{ env.artifact_path }}/version.json"
7991
rm ${{ env.artifact_path }}/*.json
8092
8193
- name: Make note file
8294
run: |
83-
cd ${{ env.artifact_path }}
8495
echo "[:cn: 修改日志](https://github.com/KangLin/Calendar/blob/${{env.Calendar_VERSION}}/ChangeLog_zh_CN.md)" > ${{github.workspace}}/Note.md
8596
echo "[:us: Change log](https://github.com/KangLin/Calendar/blob/${{env.Calendar_VERSION}}/ChangeLog.md)" >> ${{github.workspace}}/Note.md
8697
echo "" >> ${{github.workspace}}/Note.md
87-
echo "File signatures:" >> ${{github.workspace}}/Note.md
98+
echo "File checksum:" >> ${{github.workspace}}/Note.md
99+
echo "|File|Checksum(md5)|" >> ${{github.workspace}}/Note.md
100+
echo "| :- | :- |" >> ${{github.workspace}}/Note.md
101+
cd ${{ env.artifact_path }}
88102
for file in *
89103
do
90104
echo "$file"
91105
if [ -f $file ]; then
92106
if [ "${file##*.}" != "xml" ] && [ "${file##*.}" != "json" ]; then
93-
md5sum $file > $file.md5sum
94-
cat $file.md5sum >> ${{github.workspace}}/Note.md
107+
md5sum $file > ${file}.md5sum
108+
awk '{print "|", $2, "|", $1, "|"}' ${file}.md5sum >> ${{github.workspace}}/Note.md
95109
fi
96110
else
97111
rm -fr $file
98112
fi
99113
done
100-
echo "" >> ${{github.workspace}}/Note.md
101-
# echo "得到文件签名(在 linux 中): md5sum file" >> ${{github.workspace}}/Note.md
102-
# echo "Get file signatures in linux: md5sum file" >> ${{github.workspace}}/Note.md
103114
104115
- name: Upload To Github Release
105116
if: ${{ startsWith(github.ref, 'refs/tags/') }}

debian/changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ rabbitcalendar (1.0.21) unstable; urgency=medium
22

33
* Full Changelog: [v1.0.20..v1.0.21](https://github.com/KangLin/RabbitRemoteControl/compare/v1.0.20..v1.0.21)
44

5-
-- Kang Lin <[email protected]> Thu, 13 Feb 2025 16:07:34 +0800
5+
-- Kang Lin <[email protected]> Thu, 13 Feb 2025 16:46:10 +0800

0 commit comments

Comments
 (0)