Skip to content

Commit c323be3

Browse files
author
Andrew Gazelka
committed
add valence, bvh
1 parent d23b3b8 commit c323be3

594 files changed

Lines changed: 418152 additions & 1 deletion

File tree

Some content is hidden

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

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ perf.data
2626
# Misc
2727
/extractor/build
2828
/extractor/out
29-
vendor/
29+
# vendor/
3030
/extractor/classes
3131
/extractor/run
3232
/extractor/bin

vendor/bvh-data

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 9bffb03a4b894a7884c9ec0da986bdde732ac704
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/universal:2",
3+
"features": {
4+
"ghcr.io/devcontainers/features/rust:1": {},
5+
"ghcr.io/devcontainers/features/java:1": {
6+
"version": "17",
7+
"installGradle": true
8+
}
9+
}
10+
}

vendor/valence/.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: rj00a
2+
patreon: rj00a
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug Report
3+
about: Is something not working correctly?
4+
title: ''
5+
labels: bug, triage
6+
assignees: ''
7+
---
8+
9+
## Valence Version
10+
11+
The commit hash or release number of the version you're using.
12+
13+
## What You Did
14+
15+
Describe how you arrived at the problem. If you can, provide a minimal reproducible example in the details below.
16+
17+
<details>
18+
19+
<summary>Playground</summary>
20+
21+
```rust
22+
PASTE YOUR PLAYGROUND CODE HERE
23+
```
24+
25+
</details>
26+
27+
## What Went Wrong
28+
29+
What were you expecting and what actually happened?
30+
31+
## Additional Information
32+
33+
Other information that can be used to further reproduce or isolate the problem.
34+
This commonly includes:
35+
36+
- theories about what might be going wrong
37+
- links to related bugs, PRs or discussions
38+
- workarounds that you used
39+
- screenshots
40+
- logs
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
contact_links:
2+
- name: Question/Troubleshooting
3+
url: https://discord.gg/8Fqqy9XrYb
4+
about: If you just have a question or need help, feel free to reach out on our Discord server.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature Request
3+
about: Do you have an idea for a new feature?
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
## Describe the problem related to your feature request.
10+
11+
A description of what the problem is.
12+
13+
## What solution would you like?
14+
15+
The solution you propose for the problem presented.
16+
17+
## What alternative(s) have you considered?
18+
19+
Other solutions to solve and/or work around the problem presented.
20+
21+
## Additional context
22+
23+
Any other information you would like to add such as related previous work, screenshots, benchmarks, etc.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Please see the documentation for all configuration options:
2+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "cargo"
7+
directory: "/"
8+
schedule:
9+
interval: "weekly"
10+
open-pull-requests-limit: 15
11+
- package-ecosystem: "gradle"
12+
directory: "/extractor/"
13+
schedule:
14+
interval: "weekly"
15+
open-pull-requests-limit: 15
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Objective
2+
3+
- Describe the objective or issue this PR addresses.
4+
- If you're fixing a specific issue, say "Fixes #X".
5+
6+
# Solution
7+
8+
- Describe the solution used to achieve the objective above.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Check Depgraph
2+
3+
on:
4+
workflow_run:
5+
workflows: ["CI"]
6+
types:
7+
- completed
8+
9+
permissions:
10+
# Needed in order to leave comments on pull requests.
11+
pull-requests: "write"
12+
13+
env:
14+
CARGO_TERM_COLOR: always
15+
16+
jobs:
17+
check-depgraph:
18+
runs-on: ubuntu-latest
19+
if: >
20+
github.event.workflow_run.event == 'pull_request' &&
21+
github.event.workflow_run.conclusion == 'failure'
22+
steps:
23+
- name: Checkout Actions Repository
24+
uses: actions/checkout@v3
25+
26+
- name: Download artifact
27+
id: find-artifact
28+
uses: actions/github-script@v6
29+
with:
30+
result-encoding: string
31+
script: |
32+
var artifacts = await github.rest.actions.listWorkflowRunArtifacts({
33+
owner: context.repo.owner,
34+
repo: context.repo.repo,
35+
run_id: ${{ github.event.workflow_run.id }},
36+
});
37+
var matchArtifacts = artifacts.data.artifacts.filter((artifact) => {
38+
return artifact.name == "bad-depgraph"
39+
});
40+
if (matchArtifacts.length == 0) { return "false" }
41+
var matchArtifact = matchArtifacts[0];
42+
var download = await github.rest.actions.downloadArtifact({
43+
owner: context.repo.owner,
44+
repo: context.repo.repo,
45+
artifact_id: matchArtifact.id,
46+
archive_format: 'zip',
47+
});
48+
var fs = require('fs');
49+
fs.writeFileSync('${{github.workspace}}/bad-depgraph.zip', Buffer.from(download.data));
50+
return "true"
51+
52+
- name: Extract artifact
53+
id: extract_artifact
54+
if: ${{ steps.find-artifact.outputs.result == 'true' }}
55+
run: |
56+
unzip bad-depgraph.zip
57+
echo "event_number=$(cat event-number)" >> "$GITHUB_OUTPUT"
58+
59+
- name: Create pull request comment
60+
uses: marocchino/sticky-pull-request-comment@v2
61+
if: ${{ steps.find-artifact.outputs.result == 'true' }}
62+
with:
63+
recreate: true
64+
header: depgraph
65+
path: pr-comment.txt
66+
number: ${{ steps.extract_artifact.outputs.event_number }}

0 commit comments

Comments
 (0)