Skip to content
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ jobs:
if: contains(github.event.head_commit.message, 'deploy+') || contains(github.event.head_commit.message, 'pkg+')
strategy:
matrix:
platform: [ "ubuntu-latest", "ubuntu-24.04-arm" ]
# container: [ "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04", "ubuntu:23.04", "debian:11", "fedora:37", "fedora:38", "archlinux:latest" ]
container: [ "ubuntu:20.04", "ubuntu:22.04", "ubuntu:24.04", "debian:11", "debian:12", "fedora:40", "fedora:41", "opensuse/tumbleweed" ]
container: [ "ubuntu:22.04", "ubuntu:24.04", "debian:12", "fedora:40", "fedora:41" ]
# this list should be updated from time to time by consulting these pages:
# https://releases.ubuntu.com/
# https://wiki.debian.org/DebianReleases#Production_Releases
Expand All @@ -22,7 +23,7 @@ jobs:
exclude:
- container: "ubuntu:20.04"
ime: "fcitx"
runs-on: "ubuntu-latest"
runs-on: ${{ matrix.platform }}
container:
image: ${{ matrix.container }}
env:
Expand Down Expand Up @@ -64,7 +65,7 @@ jobs:
- name: upload-artifacts
uses: actions/upload-artifact@v4
with:
name: pkg-${{ steps.sanitizer.outputs.sanitized_container }}-${{ matrix.ime }}
name: pkg-${{ matrix.platform == 'ubuntu-24.04-arm' && 'arm64' || 'x64' }}-${{ steps.sanitizer.outputs.sanitized_container }}-${{ matrix.ime }}
path: artifact

release:
Expand Down
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/usr/share/applications" "/us
"/usr/share/icons/hicolor/32x32" "/usr/share/icons/hicolor/32x32/apps"
"/usr/share/icons/hicolor/48x48" "/usr/share/icons/hicolor/48x48/apps"
"/usr/share/icons/hicolor/512x512" "/usr/share/icons/hicolor/512x512/apps")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_${PROJECT_VERSION}-$ENV{DIST}")
# Configure CPack on the basis of which backend we are building for.
if(ENABLE_IBUS)
## IBUS
Expand Down Expand Up @@ -183,4 +182,7 @@ elseif(APPLE)
set(CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_ALIGNMENT "left")
endif()

# Set package filename after CPACK_PACKAGE_NAME is defined
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_${PROJECT_VERSION}-$ENV{DIST}")

include(CPack)