-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (41 loc) · 1.23 KB
/
build-and-test.yml
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
name: build-and-test
on:
workflow_dispatch:
pull_request:
branches:
- "**"
concurrency:
group: build-and-test-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pyyaml pygccxml castxml
- name: Set Paths
run: |
echo "PATH=$Python3_ROOT_DIR/bin:$PATH" >> ${GITHUB_ENV}
echo "PYTHONPATH=${{ github.workspace }}/cppwg:$PYTHONPATH" >> ${GITHUB_ENV}
find $Python3_ROOT_DIR -name "castxml"
- name: Generate Wrappers
run: |
python shapes/wrapper/generate.py \
--source_root shapes/src/ \
--wrapper_root shapes/wrapper/ \
--castxml_binary castxml \
--package_info shapes/wrapper/package_info.yaml \
--includes shapes/src/