-
Notifications
You must be signed in to change notification settings - Fork 16
WebSocket API Support & Update CI to nightly system #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
b8475d9
websocket support (v1, in testing)
binn e4ca43c
improvements to websocket API
binn dbc0a0f
updates to websocket PR
binn a42da20
make some core changes and introduce xmldoc to realtime wrapper, upda…
binn 36b5f3b
update docs
binn 2522c46
final touch ups
binn a361a14
update CI with new package
binn 14595da
remove claude code stuff
binn c2821b4
fix readme
binn 9b6bc82
CI changes for new spec release
binn 93d83a7
testt
binn 2250204
ci fixes
binn b0267c6
another fix to ci
binn fc80593
try one more time
binn aa3f168
test
binn 218d36c
fix wget
binn eab9a2f
Upgrade .NET SDK to spec 2.20.7-nightly
binn feb5aad
fix ci versioning
binn 03115cf
Merge branch 'main' of https://github.com/binn/vrchatapi-csharp
binn 466bd7f
Upgrade .NET SDK to spec 21.20.7-nightly.3
binn 8997d77
remove quotes to fix versioning
binn 2aaacd6
Merge branch 'main' of https://github.com/binn/vrchatapi-csharp
binn c7784f6
thanks AI
binn cd0a6fb
Upgrade .NET SDK to spec 220.7-nightly.3
binn ccc89d9
fix one last time my friend
binn f1a33d1
Merge branch 'main' of https://github.com/binn/vrchatapi-csharp
binn 8c67db9
Upgrade .NET SDK to spec 2.20.7-nightly.3
binn 242a9f6
CI auto version bump, yay
binn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| name: Build and Publish VRChat Realtime SDK | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'wrapper/VRChat.API.Realtime/**' | ||
| - '.github/workflows/realtime-ci.yml' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build-and-publish: | ||
| runs-on: ubuntu-latest | ||
| name: Build and Publish VRChat Realtime SDK | ||
| steps: | ||
| - name: Checkout current commit | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # Fetch all history to compare versions | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: '8.0.x' | ||
|
|
||
| - name: Setup NuGet | ||
| uses: NuGet/setup-nuget@v1.1.1 | ||
|
|
||
| - name: Get current version from csproj | ||
| id: current_version | ||
| run: | | ||
| VERSION=$(grep -oP '(?<=<Version>)[^<]+' wrapper/VRChat.API.Realtime/VRChat.API.Realtime.csproj) | ||
| echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
| echo "Current version: $VERSION" | ||
|
|
||
| - name: Get previous version from NuGet | ||
| id: nuget_version | ||
| run: | | ||
| # Try to get the latest version from NuGet | ||
| NUGET_VERSION=$(curl -s "https://api.nuget.org/v3-flatcontainer/vrchat.api.realtime/index.json" | jq -r '.versions[-1]' 2>/dev/null || echo "0.0.0") | ||
| if [ "$NUGET_VERSION" = "null" ] || [ -z "$NUGET_VERSION" ]; then | ||
| NUGET_VERSION="0.0.0" | ||
| fi | ||
| echo "version=$NUGET_VERSION" >> $GITHUB_OUTPUT | ||
| echo "Latest NuGet version: $NUGET_VERSION" | ||
|
|
||
| - name: Check if version changed | ||
| id: version_check | ||
| run: | | ||
| CURRENT="${{ steps.current_version.outputs.version }}" | ||
| NUGET="${{ steps.nuget_version.outputs.version }}" | ||
|
|
||
| echo "Current version: $CURRENT" | ||
| echo "NuGet version: $NUGET" | ||
|
|
||
| if [ "$CURRENT" != "$NUGET" ]; then | ||
| echo "Version changed from $NUGET to $CURRENT" | ||
| echo "changed=true" >> $GITHUB_OUTPUT | ||
| else | ||
| echo "Version unchanged ($CURRENT)" | ||
| echo "changed=false" >> $GITHUB_OUTPUT | ||
| fi | ||
|
|
||
| - name: Build project | ||
| run: dotnet build wrapper/VRChat.API.Realtime/VRChat.API.Realtime.csproj --configuration Release | ||
|
|
||
| - name: Publish to NuGet | ||
| if: steps.version_check.outputs.changed == 'true' | ||
| uses: pairbit/publish-nuget@v2.5.8 | ||
| with: | ||
| PROJECT_FILE_PATH: wrapper/VRChat.API.Realtime/VRChat.API.Realtime.csproj | ||
| PACKAGE_NAME: VRChat.API.Realtime | ||
| NUGET_KEY: ${{ secrets.NUGET_KEY }} | ||
| INCLUDE_SYMBOLS: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.