-
Notifications
You must be signed in to change notification settings - Fork 119
44 lines (39 loc) · 1.27 KB
/
build_addons.yaml
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
# A reusable workflow to build addons
on:
workflow_call:
inputs:
test-addons-name:
required: true
type: string
jobs:
build-test-addons:
name: Build Test Addons
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup addons cache
id: addons-cache
uses: actions/cache@v4
with:
path: build-addons/
key: test-addons-${{ hashFiles('addons/**', 'test/functional/addons/**', 'scripts/addons/*.py', 'scripts/cmake/addons.cmake') }}
- name: Install build dependencies
if: steps.addons-cache.outputs.cache-hit != 'true'
shell: bash
run: |
git submodule init
git submodule update 3rdparty/i18n
sudo apt-get update
sudo apt-get install -y $(./scripts/linux/getdeps.py -b linux/debian/control)
- name: Build test addons
if: steps.addons-cache.outputs.cache-hit != 'true'
shell: bash
run: |
mkdir -p build-addons/
cmake -S $(pwd)/tests/functional/addons -B build-addons/
cmake --build build-addons/
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.test-addons-name }}
path: build-addons/