Skip to content

Commit 4687f4c

Browse files
committed
initial commit
0 parents  commit 4687f4c

File tree

121 files changed

+8414
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+8414
-0
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PYTHONPATH=${workspaceFolder}

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
* text=auto
2+
*.py text eol=lf
3+
*.yaml text eol=lf
4+
*.json text eol=lf
5+
*.ts text eol=lf
6+
*.sh text eol=lf
7+
*.bat text eol=crlf
8+
.gitattributes text eol=lf

.github/workflows/main.yaml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Examples
5+
6+
on:
7+
push:
8+
branches: ["main", "devel"]
9+
pull_request:
10+
branches: ["main", "devel"]
11+
12+
permissions:
13+
contents: read
14+
15+
env:
16+
DAN_NOPROGRESS: 1
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Set up Python 3.11
25+
uses: actions/setup-python@v3
26+
with:
27+
python-version: "3.11"
28+
29+
- name: Configure git
30+
run: |
31+
# since some examples uses git to apply patches, it requires to be configured
32+
git config --global user.email "gh-actions@github.com"
33+
git config --global user.name "GitHub Actions"
34+
35+
- name: Install requirements
36+
run: |
37+
python -m pip install conan
38+
conan profile detect
39+
40+
- name: Install dan
41+
run: |
42+
python -m pip install --upgrade pip
43+
python -m pip install .
44+
45+
- name: Scan toolchains
46+
run: |
47+
dan scan-toolchains
48+
49+
- name: Configure
50+
run: |
51+
cd examples
52+
dan configure -v \
53+
-t default \
54+
-s install.destination=dist
55+
56+
- name: Build
57+
run: |
58+
cd examples
59+
dan build -v
60+
61+
- name: Re-build
62+
run: |
63+
cd examples
64+
dan build -v
65+
66+
- name: Test
67+
run: |
68+
cd examples
69+
dan test -v
70+
71+
- name: Install
72+
run: |
73+
cd examples
74+
dan install -v

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
__pycache__/
2+
*.pyc
3+
build*/
4+
dist/
5+
*.egg-info/
6+
toolchains.yaml
7+
temp.obj

0 commit comments

Comments
 (0)