Skip to content

Commit

Permalink
Add Linux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-hannes committed Oct 26, 2024
1 parent 2658b31 commit 33a7f4f
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,55 @@ jobs:
name: macOS_installer
path: ${{ steps.strings.outputs.build-output-dir }}/Aqua-mixtura-*-Darwin.dmg
retention-days: 5

build-linux:
name: Release builds for Linux
strategy:
fail-fast: false
matrix:
os: ["debian:12", "ubuntu:24.04", "opensuse/tumbleweed"]
include:
- os: debian:12
install-deps: apt-get update && apt-get -y install git build-essential cmake qt6-base-dev qt6-tools-dev
pkg-file: Aqua-mixtura-*.deb
- os: ubuntu:24.04
install-deps: apt-get update && apt-get -y install git build-essential cmake qt6-base-dev qt6-tools-dev
pkg-file: Aqua-mixtura-*.deb
# TODO fix dependence install on fedora
# - os: fedora:42
# install-deps: dnf -y install lsb_release git cmake make automake gcc gcc-c++ qt6-qtbase-devel qt6-linguist qt6-qttools-devel rpm-build
# pkg-file: Aqua-mixtura-*.rpm
- os: opensuse/tumbleweed
install-deps: zypper install -y lsb-release git cmake make automake gcc gcc-c++ rpm-build qt6-base-devel qt6-tools-linguist qt6-linguist-devel
pkg-file: Aqua-mixtura-*.rpm
runs-on: ubuntu-latest
container:
image: ${{ matrix.os }}

steps:
- name: Install dependencies
run: ${{ matrix.install-deps }}

- name: Checkout sources
uses: actions/checkout@v4

- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: echo "build-output-dir=${GITHUB_WORKSPACE}/build" >> "$GITHUB_OUTPUT"

- name: Configure CMake
run: cmake -S ${GITHUB_WORKSPACE} -B ${{ steps.strings.outputs.build-output-dir }}

- name: Build and package
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --target package

- name: Upload package
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}_package
path: ${{ steps.strings.outputs.build-output-dir }}/${{ matrix.pkg-file }}
retention-days: 5


2 changes: 1 addition & 1 deletion pack/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux")
# special assets for linux
# desktop file
install(FILES
aqua-mixtura.desktop
${PROJECT_SOURCE_DIR}/pack/aqua-mixtura.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
# icon
install(FILES
Expand Down

0 comments on commit 33a7f4f

Please sign in to comment.