@@ -31,27 +31,58 @@ jobs:
3131 run : test "refs/tags/v${{ steps.version.outputs.version }}" = ${{ github.ref }}
3232 - name : Install required build environment
3333 uses : ./.github/actions/archlinux_build_environment_setup
34- - name : Build (and install) fcitx5-cskk
35- uses : fcitx/github-actions@cmake
36- with :
37- path : fcitx5-cskk
38- cmake-option : >-
39- -DENABLE_QT=On -DUSE_QT6=On -DFCITX_INSTALL_USE_FCITX_SYS_PATHS=ON
34+ - name : Build fcitx5-cskk
35+ run : |
36+ cmake -B build \
37+ -DCMAKE_PREFIX_PATH=/opt/fcitx \
38+ -DCMAKE_BUILD_TYPE=Release \
39+ -DCPACK_PACKAGING_INSTALL_PREFIX=/usr \
40+ -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu \
41+ -DENABLE_QT=On \
42+ -DUSE_QT6=On
43+ cmake --build build --parallel
4044 - name : Pack deb
4145 run : |
42- cd ${{ runner.workspace }}/build
43- cpack -G DEB -DFCITX_INSTALL_USE_FCITX_SYS_PATHS=On
46+ cd build
47+ cpack -G DEB \
48+ -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=amd64
49+ cp _CPack_Packages/Linux/DEB/fcitx5-cskk_*.deb .
50+ - name : Debug - List build directory
51+ run : |
52+ echo "=== Contents of build/ directory ==="
53+ ls -la build/
54+ echo "=== Searching for .deb files ==="
55+ find build/ -name "*.deb" -ls
56+ - name : Verify deb package contents
57+ run : |
58+ echo "=== Checking .deb package structure ==="
59+ dpkg -c build/fcitx5-cskk_${{ steps.version.outputs.version }}_amd64.deb
60+ echo ""
61+ echo "=== Verifying main plugin location ==="
62+ if dpkg -c build/fcitx5-cskk_${{ steps.version.outputs.version }}_amd64.deb | grep -q "./usr/lib/x86_64-linux-gnu/fcitx5/fcitx5-cskk.so"; then
63+ echo "✓ Main plugin in correct location: /usr/lib/x86_64-linux-gnu/fcitx5/fcitx5-cskk.so"
64+ else
65+ echo "✗ ERROR: Main plugin not found at /usr/lib/x86_64-linux-gnu/fcitx5/fcitx5-cskk.so"
66+ exit 1
67+ fi
68+ - name : Rename deb for workflow_dispatch builds
69+ if : github.event_name == 'workflow_dispatch'
70+ run : |
71+ TIMESTAMP=$(date +%Y%m%d-%H%M%S)
72+ mv build/fcitx5-cskk_${{ steps.version.outputs.version }}_amd64.deb \
73+ build/fcitx5-cskk_${{ steps.version.outputs.version }}_${TIMESTAMP}_amd64.deb
74+ echo "Renamed to: fcitx5-cskk_${{ steps.version.outputs.version }}_${TIMESTAMP}_amd64.deb"
4475 - name : Attatch artifact to Release
4576 if : github.event_name == 'release'
4677 uses : softprops/action-gh-release@v1
4778 with :
4879 files : |
49- ${{ runner.workspace }}/fcitx5-cskk/_packages /fcitx5-cskk_${{ steps.version.outputs.version }}_amd64.deb
80+ build /fcitx5-cskk_${{ steps.version.outputs.version }}_amd64.deb
5081 - name : Upload DEB artifact
5182 if : github.event_name == 'workflow_dispatch'
5283 uses : actions/upload-artifact@v4
5384 with :
5485 name : fcitx5-cskk-deb
55- path : ${{ runner.workspace }} /fcitx5-cskk/_packages/fcitx5- cskk_${{ steps.version.outputs.version }} _amd64.deb
86+ path : build /fcitx5-cskk_* _amd64.deb
5687 if-no-files-found : error
5788 retention-days : 30
0 commit comments