forked from igraph/igraph
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 914 Bytes
/
stimulus.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
name: Stimulus
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
env:
STIMULUS_VERSION: "0.19.0"
steps:
# Use Clang for more informative error messages
- name: Install Clang
run: sudo apt-get install clang
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install stimulus
run: |
cd interfaces
python3 -m venv .venv
.venv/bin/pip install 'git+https://github.com/igraph/stimulus.git@${{ env.STIMULUS_VERSION }}#egg=stimulus'
- name: Configure igraph
run: |
mkdir build && cd build
cmake ..
- name: Validate functions.yaml
run: |
cd interfaces
.venv/bin/stimulus -f functions.yaml -t types.yaml -l ci:validate -o test.cpp
clang++ -std=c++14 -c test.cpp -I ../include -I ../build/include