Skip to content

Commit c89b68a

Browse files
authored
AIRO-1610 Package addition (Unity-Technologies#1)
* Package addition * Update README * Include ccpp yml updates * Update mac library
1 parent 75b849b commit c89b68a

File tree

112 files changed

+3846
-13386
lines changed

Some content is hidden

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

112 files changed

+3846
-13386
lines changed

.editorconfig

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
; see http://editorconfig.org/ for docs on this file
2+
; See https://github.com/dotnet/format for dotnet format
3+
4+
root = true
5+
6+
[*]
7+
ignore_if_in_header = This code was generated by a tool|<auto-generated>
8+
indent_style = space
9+
indent_size = 4
10+
; uncomment to help with sharing files across os's (i.e. network share or through local vm)
11+
#end_of_line = lf
12+
; avoid a bom, which causes endless problems with naive text tooling
13+
charset = utf-8
14+
trim_trailing_whitespace = true
15+
insert_final_newline = true
16+
; keeping auto-format enabled helps avoid merge hell for projects without CI-based format validation
17+
#disable_auto_format = true
18+
19+
[*.cs]
20+
; uncomment to enable full formatting of c# files
21+
formatters = generic, uncrustify
22+
23+
[*.asmdef]
24+
scrape_api = true
25+
26+
[**/Tests/**.asmdef]
27+
scrape_api = false
28+
29+
[*.Tests.asmdef]
30+
scrape_api = false
31+
32+
[*.md]
33+
indent_size = 2
34+
; trailing whitespace is unfortunately significant in markdown
35+
trim_trailing_whitespace = false
36+
; uncomment to enable basic formatting of markdown files
37+
#formatters = generic
38+
39+
[{Makefile,makefile}]
40+
; tab characters are part of the Makefile format
41+
indent_style = tab
42+
43+
[*.asmdef]
44+
indent_size = 4
45+
46+
[*.json]
47+
indent_size = 2
48+
49+
[*.{vcproj,bat,cmd,xaml,tt,t4,ttinclude}]
50+
end_of_line = crlf
51+
52+
; this VS-specific stuff is based on experiments to see how VS will modify a file after it has been manually edited.
53+
; the settings are meant to closely match what VS does to minimize unnecessary diffs.
54+
[*.{vcxproj,vcxproj.filters}]
55+
indent_style = space
56+
indent_size = 2
57+
end_of_line = crlf
58+
charset = utf-8-bom
59+
trim_trailing_whitespace = true
60+
insert_final_newline = false
61+
; must be broken out because of 51-char bug (https://github.com/editorconfig/editorconfig-visualstudio/issues/21)
62+
[*.{csproj,pyproj,props,targets}]
63+
indent_style = space
64+
indent_size = 2
65+
end_of_line = crlf
66+
charset = utf-8-bom
67+
trim_trailing_whitespace = true
68+
insert_final_newline = false
69+
[*.{sln,sln.template}]
70+
indent_style = tab
71+
indent_size = 4
72+
end_of_line = crlf
73+
charset = utf-8
74+
trim_trailing_whitespace = true
75+
insert_final_newline = false

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
12+
A clear and concise description of what the bug is.
13+
14+
**To Reproduce**
15+
16+
Steps to reproduce the behavior:
17+
1. Go to '...'
18+
2. Click on '....'
19+
3. Scroll down to '....'
20+
4. See error
21+
22+
**Console logs / stack traces**
23+
24+
Please wrap in [triple backticks (```)](https://help.github.com/en/articles/creating-and-highlighting-code-blocks) to make it easier to read.
25+
26+
**Expected behavior**
27+
28+
A clear and concise description of what you expected to happen.
29+
30+
**Screenshots**
31+
32+
If applicable, add screenshots or videos to help explain your problem.
33+
34+
**Environment (please complete the following information, where applicable):**
35+
36+
- Unity Version: [e.g. Unity 2020.2.0f1]
37+
- Unity machine OS + version: [e.g. Windows 10]
38+
- Branch or version: [e.g. v0.2.0]
39+
40+
**Additional context**
41+
42+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Unity Robotics Forum
4+
url: https://forum.unity.com/forums/robotics.623/
5+
about: Discussions and questions about Unity Robotics tools, demos, or integrations.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
12+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13+
14+
**Describe the solution you'd like**
15+
16+
A clear and concise description of what you want to happen.
17+
18+
**Describe alternatives you've considered**
19+
20+
A clear and concise description of any alternative solutions or features you've considered.
21+
22+
**Additional context**
23+
24+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Proposed change(s)
2+
3+
Describe the changes made in this PR.
4+
5+
### Useful links (GitHub issues, JIRA tickets, forum threads, etc.)
6+
7+
Provide any relevant links here.
8+
9+
### Types of change(s)
10+
11+
- [ ] Bug fix
12+
- [ ] New feature
13+
- [ ] Code refactor
14+
- [ ] Documentation update
15+
- [ ] Other (please describe)
16+
17+
## Testing and Verification
18+
19+
Please describe the tests that you ran to verify your changes. Please also provide instructions and Unity project files as appropriate so we can reproduce the test environment.
20+
21+
### Test Configuration:
22+
- Unity Version: [e.g. Unity 2020.2.0f1]
23+
- Unity machine OS + version: [e.g. Windows 10]
24+
25+
## Checklist
26+
- [ ] Ensured this PR is up-to-date with the `dev` branch
27+
- [ ] Created this PR to target the `dev` branch
28+
- [ ] Updated the [Changelog](../CHANGELOG.md) and described changes in the [Unreleased section](../CHANGELOG.md#unreleased)
29+
- [ ] Updated the documentation as appropriate
30+
31+
## Other comments

.github/workflows/ccpp.yml

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
include:
1212
- platform: windows-latest
1313
cmake_type: "Visual Studio 16 2019"
14-
dll_name: "Debug/libvhacd.dll"
14+
dll_name: "Release/libvhacd.dll"
1515
target_dll_name: "libvhacd.dll"
1616
- platform: ubuntu-latest
1717
cmake_type: "Unix Makefiles"
@@ -26,15 +26,15 @@ jobs:
2626

2727
steps:
2828
- uses: actions/checkout@v1
29-
- uses: ilammy/msvc-dev-cmd@v1.0.0
29+
- uses: ilammy/msvc-dev-cmd@v1.5.0
3030

3131
- name: configure
3232
run: |
3333
mkdir build
3434
cd build
3535
cmake -G "${{ matrix.cmake_type }}" ../src
3636
- name: build
37-
run: cmake --build build --config Debug
37+
run: cmake --build build --config Release
3838

3939
- uses: actions/upload-artifact@v1
4040
with:
@@ -70,35 +70,4 @@ jobs:
7070
- uses: actions/download-artifact@v1
7171
with:
7272
name: macos-latest
73-
74-
- uses: pCYSl5EDgo/setup-unity@master
75-
with:
76-
unity-version: 2019.2.13f1
77-
78-
- name: create unitypackage
79-
run: |
80-
mkdir build
81-
mkdir build/VHACD
82-
cp ubuntu-latest/liblibvhacd.so build/VHACD/liblibvhacd.so
83-
cp macos-latest/liblibvhacd.dylib build/VHACD/liblibvhacd.dylib
84-
cp windows-latest/libvhacd.dll build/VHACD/libvhacd.dll
85-
cp src/dll/VHACD.cs build/VHACD/VHACD.cs
86-
cp src/dll/vhacd.asmdef build/VHACD/vhacd.asmdef
87-
cp src/dll/vhacd.asmdef.meta build/VHACD/vhacd.asmdef.meta
88-
cp src/dll/liblibvhacd.so.meta build/VHACD/liblibvhacd.so.meta
89-
cp src/dll/liblibvhacd.dylib.meta build/VHACD/liblibvhacd.dylib.meta
90-
cp src/dll/libvhacd.dll.meta build/VHACD/libvhacd.dll.meta
91-
cd build
92-
/opt/Unity/Editor/Unity -quit -batchMode -logFile -noGraphics -force-free -createProject unity_project
93-
mv VHACD unity_project/VHACD
94-
/opt/Unity/Editor/Unity -quit -batchMode -logFile -noGraphics -force-free -projectPath unity_project -exportPackage VHACD VHACD.unitypackage
95-
96-
- name: upload unitypackage
97-
uses: actions/upload-release-asset@v1.0.1
98-
env:
99-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100-
with:
101-
upload_url: ${{ steps.create_release.outputs.upload_url }}
102-
asset_path: ./build/VHACD.unitypackage
103-
asset_name: VHACD.unitypackage
104-
asset_content_type: application/octet-stream
73+

.github/workflows/jira-link.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: jira-link
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, reopened, synchronize]
6+
7+
jobs:
8+
jira-link:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- name: check pull request title and source branch name
12+
run: |
13+
echo "Checking pull request with title ${{ github.event.pull_request.title }} from source branch ${{ github.event.pull_request.head.ref }}"
14+
if ! [[ "${{ github.event.pull_request.title }}" =~ ^AIRO-[0-9]+[[:space:]].*$ ]] && ! [[ "${{ github.event.pull_request.head.ref }}" =~ ^AIRO-[0-9]+.*$ ]]
15+
then
16+
echo -e "Please make sure one of the following is true:\n \
17+
1. the pull request title starts with 'AIRO-xxxx ', e.g. 'AIRO-1024 My Pull Request'\n \
18+
2. the source branch starts with 'AIRO-xxx', e.g. 'AIRO-1024-my-branch'"
19+
exit 1
20+
else
21+
echo "Completed checking"
22+
fi

.github/workflows/pre-commit.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
pre-commit:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-python@v2
12+
with:
13+
python-version: 3.7.x
14+
- uses: actions/setup-dotnet@v1
15+
with:
16+
dotnet-version: '6.0.x'
17+
include-prerelease: true
18+
- uses: pre-commit/action@v2.0.0

.github/workflows/stale.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'Stale issue handler'
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 17 * * *' # 17:00 UTC; 10:00 PDT
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/stale@v4.0.0
15+
id: stale
16+
with:
17+
stale-issue-label: 'stale'
18+
stale-issue-message: 'This issue has been marked stale because it has been open for 14 days with no activity. Please remove the stale label or comment on this issue, or the issue will be automatically closed in the next 14 days.'
19+
days-before-stale: 14
20+
days-before-pr-stale: -1
21+
days-before-close: 14
22+
days-before-pr-close: -1
23+
exempt-issue-labels: 'blocked,must,should,keep,pinned,work-in-progress,request,announcement'
24+
close-issue-message: 'This issue has been marked stale for 14 days and will now be closed. If this issue is still valid, please ping a maintainer.'
25+
- name: Print outputs
26+
run: echo ${{ join(steps.stale.outputs.*, ',') }}
27+

0 commit comments

Comments
 (0)