forked from a1rwulf/peripheral.joystick
-
Notifications
You must be signed in to change notification settings - Fork 45
57 lines (56 loc) · 1.59 KB
/
build.yml
File metadata and controls
57 lines (56 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build
on: [push, pull_request]
env:
app_id: peripheral.joystick
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: "GCC build"
CC: gcc
CXX: g++
- name: "Clang build"
CC: clang
CXX: clang++
steps:
- name: Install gperf
run: |
sudo apt-get update -qq
sudo apt-get install -y gperf
- name: Checkout Kodi repo
uses: actions/checkout@v5
with:
repository: xbmc/xbmc
ref: master
path: xbmc
- name: Checkout add-on repo
uses: actions/checkout@v5
with:
path: ${{ env.app_id }}
- name: Prepare
run: |
mkdir -p ${{ github.workspace }}/xbmc/cmake/addons/addons/${app_id}
echo ${app_id} ${{ github.workspace }}/${app_id} > ${{ github.workspace }}/xbmc/cmake/addons/addons/${app_id}/${app_id}.txt
- name: Configure
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
run: |
cmake \
-B ${app_id}/build \
-DADDONS_TO_BUILD=${app_id} \
-DADDON_SRC_PREFIX=${{ github.workspace }} \
-DADDONS_DEFINITION_DIR=${{ github.workspace }}/xbmc/cmake/addons/addons \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/xbmc/addons \
-DPACKAGE_ZIP=1 \
${{ github.workspace }}/xbmc/cmake/addons
- name: Build
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
run: |
make -C ${app_id}/build -j$(getconf _NPROCESSORS_ONLN)