Skip to content

Commit ac29945

Browse files
committed
fix(ci): build step (#36)
Reviewed-on: https://codeberg.org/GeopJr/Turntable/pulls/36
1 parent 10a2414 commit ac29945

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
bundle: "dev.geopjr.Turntable.Devel.flatpak"
3939
run-tests: true
40-
manifest-path: "build-aux/dev.geopjr.Turntable.Devel.json"
40+
manifest-path: "build-aux/dev.geopjr.Turntable.json"
4141
cache-key: flatpak-builder-${{ github.sha }}
4242
arch: ${{ matrix.variant.arch }}
4343
repository-name: flathub

.woodpecker.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
when:
2+
- event: pull_request
3+
- event: push
4+
branch: main
5+
16
steps:
27
lint:
38
image: valalang/lint:latest
49
commands:
510
- io.elementary.vala-lint -c vala-lint.conf || exit 1
611

7-
lint:
8-
image: debian:testing
12+
build:
13+
depends_on: [lint]
14+
image: alpine:edge
915
commands:
10-
- make build test
16+
- apk add --no-cache meson vala glib-dev gtk4.0-dev json-glib-dev libadwaita-dev libsoup3-dev desktop-file-utils gettext-dev make clang git libsecret-dev
17+
- CC=clang make build

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ endif
5757
add_project_arguments (
5858
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
5959
'-DG_LOG_DOMAIN="Turntable"',
60+
'-w',
6061
language: 'c'
6162
)
6263

src/Views/Window.vala

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,10 @@ public class Turntable.Views.Window : Adw.ApplicationWindow {
671671
private void update_player (Mpris.Entry? new_player) {
672672
debug ("[%s] Player Changed", uuid);
673673

674-
scrobbling_manager.clear_queue (uuid);
675-
scrobble_enabled = false;
674+
#if SCROBBLING
675+
scrobbling_manager.clear_queue (uuid);
676+
scrobble_enabled = false;
677+
#endif
676678
this.player = new_player;
677679
foreach (var binding in player_bindings) {
678680
binding.unbind ();
@@ -713,7 +715,9 @@ public class Turntable.Views.Window : Adw.ApplicationWindow {
713715
prog.client_name = this.player.client_info_name;
714716

715717
button_play.grab_focus ();
716-
update_scrobble_status ();
718+
#if SCROBBLING
719+
update_scrobble_status ();
720+
#endif
717721
}
718722

719723
#if SCROBBLING

0 commit comments

Comments
 (0)