Skip to content

Commit

Permalink
Release preparations
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrolcl committed Dec 29, 2024
1 parent e6ece98 commit 20c446c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 25 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name: Build on Linux

on:
push:
branches: [ "devel", "master" ]
pull_request:
branches: [ "devel", "master" ]
workflow_dispatch:

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: RelWithDebInfo
DRUMSTICKNAME: DrumstickV2
DRUMSTICK_LOCATION: ${{github.workspace}}/DrumstickV2
Expand All @@ -18,53 +16,47 @@ env:

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: dawidd6/action-download-artifact@v3
- uses: dawidd6/action-download-artifact@v7
with:
name: ${{env.DRUMSTICKNAME}}
github_token: ${{secrets.GH_PAT}}
repo: pedrolcl/drumstick
allow_forks: false
workflow: cmake.yml
allow_forks: false

- name: Extract downloaded files
run: tar xvf ${{env.DRUMSTICKNAME}}.tar

- uses: dawidd6/action-download-artifact@v3
- uses: dawidd6/action-download-artifact@v7
with:
name: ${{env.UCHARDETNAME}}
github_token: ${{secrets.GH_PAT}}
repo: pedrolcl/uchardet
allow_forks: false
workflow: linux-build.yml
allow_forks: false

- name: Extract downloaded files
run: tar xvf ${{env.UCHARDETNAME}}.tar

- name: Install Qt
uses: jurplel/install-qt-action@v3
uses: jurplel/install-qt-action@v4
with:
version: '6.5.*'
version: '6.8.*'
modules: qt5compat

- name: Dependencies
run: sudo apt-get update && sudo apt-get install -yq pkg-config libasound2-dev uchardet
run: sudo apt-get update && sudo apt-get install -yq pkg-config libasound2-dev

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build
-DBUILD_DOCS=OFF
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DCMAKE_PREFIX_PATH="${{env.DRUMSTICK_LOCATION}};${{env.UCHARDET_LOCATION}}"

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ project ( dmidiplayer
HOMEPAGE_URL "https://sourceforge.net/p/dmidiplayer/"
)

set(PROJECT_RELEASE_DATE "August 31, 2024")
set(PROJECT_RELEASE_DATE "December 30, 2024")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
Expand Down
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-12-30
* Release 1.7.5

2024-12-23
* Fix for GH ticket #32: text highlight color setting

Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,20 @@ Alright, these are the build requirements:

* C++11 compiler
* [Qt 5](https://www.qt.io/download) >= 5.15 or Qt6 >= 6.2
* [Drumstick 2.8](https://sourceforge.net/projects/drumstick/)
* [Drumstick 2.10](https://sourceforge.net/projects/drumstick/)
* [Uchardet 0.0.8](https://www.freedesktop.org/wiki/Software/uchardet/)
* [pandoc](https://pandoc.org/)
* [CMake 3.14](https://cmake.org/)
* [CMake 3.16](https://cmake.org/)

Build and deployment commands (for Linux)

```
$ tar -xvzf dmidiplayer-x.y.z.tar.gz
$ cd dmidiplayer-x.y.z
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_PREFIX_PATH="$HOME/Qt5;$HOME/drumstick2;$HOME/uchardet"
$ make
$ make install
$ cmake -S . -B build -DCMAKE_PREFIX_PATH="$HOME/Qt;$HOME/drumstick2;$HOME/uchardet"
$ cmake --build build
$ cmake --install build
```

You probably don't need to use the CMake variable CMAKE_PREFIX_PATH at all, if your dependencies are installed on some standard prefix like "/usr" on Linux. Otherwise, you need to replace the contents of the parameter CMAKE_PREFIX_PATH with the actual paths in your system (in the example, each dependency was installed on a subdirectory under the $HOME directory). If you don't want to compile the program yourself, there are x86_64 precompiled packages for Linux, Windows and macOS at Sourceforge.
Expand Down
2 changes: 1 addition & 1 deletion dmidiplayer.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TEMPLATE = app
TARGET = dmidiplayer
VERSION = 1.7.4
VERSION = 1.7.5
QT += gui widgets printsupport
CONFIG += qt thread exceptions c++11 link_pkgconfig
INCLUDEPATH += $$(DRUMSTICKINCLUDES)
Expand Down
2 changes: 1 addition & 1 deletion docs/dmidiplayer.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 2.14.0.3
.\"
.TH "DMIDIPLAYER" "1" "October 12, 2023" "dmidiplayer 1.7.3" "Drumstick MIDI File Player"
.TH "DMIDIPLAYER" "1" "December 30, 2024" "dmidiplayer 1.7.5" "Drumstick MIDI File Player"
.hy
.SH NAME
.PP
Expand Down
1 change: 1 addition & 0 deletions net.sourceforge.dmidiplayer.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
</screenshot>
</screenshots>
<releases>
<release version="1.7.5" date="2024-12-30" />
<release version="1.7.4" date="2024-08-31" />
<release version="1.7.3" date="2023-10-12" />
<release version="1.7.2" date="2023-07-08" />
Expand Down

0 comments on commit 20c446c

Please sign in to comment.