diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 76b49c5c..94dc2ac2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -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: @@ -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: diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d3419de..d4ceb934 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 @@ -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)