Skip to content

Commit

Permalink
ci(github): package source archives on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
trollixx committed Aug 4, 2024
1 parent 1eb6548 commit 95cbdf8
Showing 1 changed file with 51 additions and 3 deletions.
54 changes: 51 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,13 @@ jobs:
uses: softprops/action-gh-release@v2
with:
draft: true
fail_on_unmatched_files: 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 +134,52 @@ jobs:
fail_on_unmatched_files: true
files: |
zeal-*.AppImage*
build-ubuntu:
name: Ubuntu / Source
runs-on: ubuntu-22.04

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 \
libgl1-mesa-dev \
libqt6opengl6-dev \
libsqlite3-dev \
libvulkan-dev \
libxcb-keysyms1-dev \
ninja-build \
qt6-base-private-dev \
qt6-webengine-dev \
qt6-webengine-dev-tools
- name: Configure & Build
uses: lukka/run-cmake@v10
with:
configurePreset: ninja-multi
buildPreset: ninja-multi-release

- 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-${{ env.ZEAL_VERSION }}.*

0 comments on commit 95cbdf8

Please sign in to comment.