Skip to content

Commit fb47d55

Browse files
authored
Merge pull request #30 from AlwinEsch/Nexus-change
[Nexus] allow github workflow build tests and version increase related to fix before
2 parents 88c0320 + c9ac72c commit fb47d55

File tree

3 files changed

+63
-1
lines changed

3 files changed

+63
-1
lines changed

.github/workflows/build.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Build and run tests
2+
on: [push, pull_request]
3+
env:
4+
app_id: audiodecoder.fluidsynth
5+
6+
jobs:
7+
build:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
include:
13+
- name: "Debian package test"
14+
os: ubuntu-18.04
15+
CC: gcc
16+
CXX: g++
17+
DEBIAN_BUILD: true
18+
- os: ubuntu-18.04
19+
CC: gcc
20+
CXX: g++
21+
- os: ubuntu-18.04
22+
CC: clang
23+
CXX: clang++
24+
#- os: macos-10.15
25+
steps:
26+
- name: Install needed ubuntu depends
27+
env:
28+
DEBIAN_BUILD: ${{ matrix.DEBIAN_BUILD }}
29+
run: |
30+
if [[ $DEBIAN_BUILD == true ]]; then sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly; fi
31+
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get update; fi
32+
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get install fakeroot; fi
33+
- name: Checkout Kodi repo
34+
uses: actions/checkout@v2
35+
with:
36+
repository: xbmc/xbmc
37+
ref: master
38+
path: xbmc
39+
- name: Checkout audiodecoder.fluidsynth repo
40+
uses: actions/checkout@v2
41+
with:
42+
path: ${{ env.app_id }}
43+
- name: Configure
44+
env:
45+
CC: ${{ matrix.CC }}
46+
CXX: ${{ matrix.CXX }}
47+
DEBIAN_BUILD: ${{ matrix.DEBIAN_BUILD }}
48+
run: |
49+
if [[ $DEBIAN_BUILD != true ]]; then cd ${app_id} && mkdir -p build && cd build; fi
50+
if [[ $DEBIAN_BUILD != true ]]; then cmake -DADDONS_TO_BUILD=${app_id} -DADDON_SRC_PREFIX=${{ github.workspace }} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/xbmc/addons -DPACKAGE_ZIP=1 ${{ github.workspace }}/xbmc/cmake/addons; fi
51+
if [[ $DEBIAN_BUILD == true ]]; then wget https://raw.githubusercontent.com/xbmc/xbmc/master/xbmc/addons/kodi-dev-kit/tools/debian-addon-package-test.sh && chmod +x ./debian-addon-package-test.sh; fi
52+
if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get build-dep ${{ github.workspace }}/${app_id}; fi
53+
- name: Build
54+
env:
55+
CC: ${{ matrix.CC }}
56+
CXX: ${{ matrix.CXX }}
57+
DEBIAN_BUILD: ${{ matrix.DEBIAN_BUILD }}
58+
run: |
59+
if [[ $DEBIAN_BUILD != true ]]; then cd ${app_id}/build; fi
60+
if [[ $DEBIAN_BUILD != true ]]; then make; fi
61+
if [[ $DEBIAN_BUILD == true ]]; then ./debian-addon-package-test.sh ${{ github.workspace }}/${app_id}; fi

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
This is a [Kodi](https://kodi.tv) audio decoder addon for midi files.
44

55
[![License: GPL-2.0-or-later](https://img.shields.io/badge/License-GPL%20v2+-blue.svg)](LICENSE.md)
6+
[![Build and run tests](https://github.com/xbmc/audiodecoder.fluidsynth/actions/workflows/build.yml/badge.svg?branch=Nexus)](https://github.com/xbmc/audiodecoder.fluidsynth/actions/workflows/build.yml)
67

78
## Build instructions
89

audiodecoder.fluidsynth/addon.xml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<addon
33
id="audiodecoder.fluidsynth"
4-
version="20.0.0"
4+
version="20.0.1"
55
name="FluidSynth MIDI Audio Decoder"
66
provider-name="spiff">
77
<requires>@ADDON_DEPENDS@</requires>

0 commit comments

Comments
 (0)