Skip to content

Commit 357e2ae

Browse files
committed
CI(Piers): sync build.yml from Omega and use xbmc master
1 parent 976304e commit 357e2ae

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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)

0 commit comments

Comments
 (0)