-
Notifications
You must be signed in to change notification settings - Fork 17
85 lines (68 loc) · 1.98 KB
/
Copy pathlinux.yml
File metadata and controls
85 lines (68 loc) · 1.98 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Linux Workflow
on:
workflow_call:
inputs:
vmImage:
required: true
type: string
workflow_dispatch:
inputs:
vmImage:
description: VM Image to use
required: true
type: string
default: ubuntu-latest
jobs:
LinuxPython:
strategy:
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
runs-on: ${{inputs.vmImage}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Python ${{matrix.python_version}}
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python_version}}
- name: Get dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get install doxygen
- name: NPM steps
run: |
npm install
npm run build
- name: Python build
run: |
pip install -e .[dev] -v
- name: Python test
uses: pavelzw/pytest-action@v1
with:
verbose: true
job_summary: true
emoji: true
LinuxCPP:
runs-on: ${{inputs.vmImage}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Get dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get install doxygen
- name: NPM steps
run: |
npm install
npm run build
- name: CMake config
run: cmake -B ${{github.workspace}}/build -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DSCENEPIC_BUILD_TESTS=1 -DSCENEPIC_BUILD_DOCUMENTATION=1
- name: CMake build
run: cmake --build ${{github.workspace}}/build --config Release --target cpp
- name: CMake test
working-directory: ${{github.workspace}}/build
run: ctest -V --build-config Release --timeout 120 --output-on-failure -T Test