Skip to content

Commit

Permalink
ci(github): package source archives on Linux
Browse files Browse the repository at this point in the history
Fixes #1610.
  • Loading branch information
trollixx committed Sep 2, 2024
1 parent 92faa65 commit 92fa74f
Showing 1 changed file with 58 additions and 9 deletions.
67 changes: 58 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ jobs:
qt_modules: "qtwebengine qtwebchannel qtpositioning",
qt_version: "6.7.2",
configurePreset: ninja-multi-vcpkg,
buildPreset: ninja-multi-vcpkg-release,
buildSourcePackage: true
buildPreset: ninja-multi-vcpkg-release
}
- {
name: "Windows Server 2022 / Qt 6 / Portable",
Expand Down Expand Up @@ -82,22 +81,16 @@ jobs:
CODESIGN_CERTIFICATE_BASE64: ${{ secrets.CODESIGN_CERTIFICATE_BASE64 }}
CODESIGN_PASSWORD: ${{ secrets.CODESIGN_PASSWORD }}

- name: Package Source
if: matrix.config.buildSourcePackage
run: cmake --build build --preset ${{ matrix.config.buildPreset }} --target package_source

- name: Update GitHub Release
uses: softprops/action-gh-release@v2
with:
draft: true
# Only upload the following artifacts:
# - Source packages.
# - Non-portable MSI package.
# - Portable 7-Zip and ZIP packages.
# - Non-portable MSI package.
files: |
build/${{ matrix.config.configurePreset }}/zeal-${{ env.ZEAL_VERSION }}-portable-windows-x64.*
build/${{ matrix.config.configurePreset }}/zeal-${{ env.ZEAL_VERSION }}-windows-x64.msi*
build/${{ matrix.config.configurePreset }}/zeal-${{ env.ZEAL_VERSION }}.*
build-appimage:
name: AppImage
Expand Down Expand Up @@ -135,3 +128,59 @@ jobs:
fail_on_unmatched_files: true
files: |
zeal-*.AppImage*
build-ubuntu:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Ubuntu 22.04 / Source",
os: ubuntu-22.04,
qt_packages: "libgl1-mesa-dev libqt6opengl6-dev qt6-base-private-dev qt6-webengine-dev qt6-webengine-dev-tools",
configurePreset: "ninja-multi",
buildPreset: "ninja-multi-release"
}

env:
ZEAL_RELEASE_BUILD: ON

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Dependencies
run: |
sudo apt-get -y -qq update
sudo apt-get -y -qq --no-install-recommends install \
cmake \
extra-cmake-modules \
libarchive-dev \
libsqlite3-dev \
libvulkan-dev \
libxcb-keysyms1-dev \
ninja-build \
${{ matrix.config.qt_packages }}
- name: Configure & Build
uses: lukka/run-cmake@v10
with:
configurePreset: ${{ matrix.config.configurePreset }}
buildPreset: ${{ matrix.config.buildPreset }}

- name: Package Source
run: cmake --build build --preset ${{ matrix.config.buildPreset }} --target package_source

- name: Update GitHub Release
uses: softprops/action-gh-release@v2
with:
draft: true
fail_on_unmatched_files: true
# Only upload the following artifacts:
# - Source packages.
files: |
build/${{ matrix.config.configurePreset }}/zeal-*.*

0 comments on commit 92fa74f

Please sign in to comment.