File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build
2+ on : [push, pull_request]
3+ env :
4+ app_id : visualization.milkdrop2
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ strategy :
10+ fail-fast : false
11+ matrix :
12+ include :
13+ - name : " GCC build"
14+ CC : gcc
15+ CXX : g++
16+ - name : " Clang build"
17+ CC : clang
18+ CXX : clang++
19+ steps :
20+ - name : Checkout Kodi repo
21+ uses : actions/checkout@v5
22+ with :
23+ repository : xbmc/xbmc
24+ ref : master
25+ path : xbmc
26+ - name : Checkout add-on repo
27+ uses : actions/checkout@v5
28+ with :
29+ path : ${{ env.app_id }}
30+ - name : Prepare
31+ run : |
32+ mkdir -p ${{ github.workspace }}/xbmc/cmake/addons/addons/${app_id}
33+ echo ${app_id} ${{ github.workspace }}/${app_id} > ${{ github.workspace }}/xbmc/cmake/addons/addons/${app_id}/${app_id}.txt
34+ - name : Install GL deps
35+ run : |
36+ sudo apt-get update
37+ sudo apt-get install -y libgl-dev
38+ - name : Configure
39+ env :
40+ CC : ${{ matrix.CC }}
41+ CXX : ${{ matrix.CXX }}
42+ run : |
43+ cmake \
44+ -B ${app_id}/build \
45+ -DADDONS_TO_BUILD=${app_id} \
46+ -DADDON_SRC_PREFIX=${{ github.workspace }} \
47+ -DADDONS_DEFINITION_DIR=${{ github.workspace }}/xbmc/cmake/addons/addons \
48+ -DCMAKE_BUILD_TYPE=Debug \
49+ -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/xbmc/addons \
50+ -DPACKAGE_ZIP=1 \
51+ ${{ github.workspace }}/xbmc/cmake/addons
52+ - name : Build
53+ env :
54+ CC : ${{ matrix.CC }}
55+ CXX : ${{ matrix.CXX }}
56+ run : |
57+ make -C ${app_id}/build -j$(getconf _NPROCESSORS_ONLN)
You can’t perform that action at this time.
0 commit comments