-
Notifications
You must be signed in to change notification settings - Fork 39
81 lines (74 loc) · 2.29 KB
/
recursiveBuild.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: SDK Recursive Build
on:
workflow_dispatch:
inputs:
build_type:
type: choice
description: Build all or only changed files
options:
- Only changed files
- All files
necto_type:
type: choice
description: Live or Development NECTO build
options:
- Development
- Live
pull_request:
branches:
- master
jobs:
recursiveBuild:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install aiohttp
pip install aiofiles
pip install requests
pip install py7zr
pip install elasticsearch==7.13.4
sudo apt-get update
sudo apt-get install p7zip-full
sudo apt-get install libopus-dev
sudo apt-get install libevent-dev
sudo apt-get install freeglut3-dev
sudo apt-get install libminizip-dev
sudo apt-get install libxcb-shape0-dev
sudo apt-get install libxcb-icccm4-dev
sudo apt-get install libxcb-cursor-dev
sudo apt-get install libxcb-keysyms1-dev
sudo apt-get install libxkbcommon-x11-dev
- name: Install NECTO
run: |
if [[ "${{ github.event.inputs.necto_type }}" == 'Live' ]]; then
export NECTO_DOWNLOAD_URL=${{ secrets.NECTO_LIVE_DOWNLOAD_URL }}
else
export NECTO_DOWNLOAD_URL=${{ secrets.NECTO_DEV_DOWNLOAD_URL }}
fi
python -u scripts/install_necto.py
- name: Run Recursive Build
run: |
if [[ "${{ github.event.inputs.build_type }}" == 'All files' ]]; then
export BUILD_ALL=1
echo "Building all files."
else
export BUILD_ALL=0
echo "Building only changed files."
fi
python -u scripts/recursive_build.py
- name: Archive test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: /home/runner/test_results