mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-07-02 19:13:43 -04:00
4.0 (#100)
* Fix formatting/update doc comments in Raylib.cs * Update types in Raylib.cs to 4.0 * Remove app.config * Update Raylib.cs functions * Split Enums, Structs & Classes into own files * Testing utils for Raylib.cs * Update Raylib-cs.csproj * Reorganize types - Move into types folder - Group types based on usage * Fix parameter names * Rename CloseAudioStream to UnloadAudioStream * Remove ref SetShaderValue overloads * Remove some constants from Raylib.cs * Include README.md in package * Replace old version of GetDroppedUtils * Update README.md * Remove Physac-cs and Raygui-cs - Not actively maintained and a pain for users to setup... * Update comments to xmldoc * Rename Gestures enum to Gesture * Minor fixes - Rename Gestures enum to Gesture - Update tests to net6.0 * Testing CBool type instead of bool * Update XmlDoc comments * Update build.yml to net6.0 for tests * Remove Easings.cs - Easings used to be part of raylib. It is now a separate extra library so I am removing it from the main bindings. * Update rlgl * More XmlDoc comments * Use CBool in structs * Big unsafe update * Fix typos and change refs to pointers in Rlgl * Update LoggingUtils and Material * Fix typo in Rlgl * Update build.yml * Rename RaylibUtils.cs to Raylib.Utils now a partial class * Convert some RLGL consts to Enums Also added helper methods/overloads for related methods * Make class Raylib partial * Convert some text functions to not use ref I dont think they will work. need testing * Testing fixes for Text functions * Create rlMultMatrixf safe overload * Implement safe ModelAnimation * Testing fix for ModelAnimation using wrapper struct * Added TODOs * Fix rlMultMatrixf - Add missing ToFloatV functions to Raymath - Fix rlMultMatrixf overload to use MatrixToFloatV * Fix IsGestureDetected and formatting * Add a few text tests * Move wrapper functions into Raylib.Utils * Remove ref from raylib bindings * Multi-target net5.0 * Testing string approaches * Fixing more util and unsafe functions * Testing TraceLogCallback fix Set lang version to C# 10 * Replace managed callbacks with unsafe delegates * Update default LogConsole callback * Setup unsafe/safe functions for math types in Raylib.cs * Replace string in Rlgl with sbyte* * Yet more string changes - Use sbyte/byte correctly in Raylib.cs - Using Marshal.StringToCoTaskMemUTF8 - Update utils string usage * Fix typo bug and whitespace * Fix DrawTextPro and more whitespace * Remove unused ToString * Add file functions back into Raylib * Test paths filter for pull requests * Change to paths-ignore filter * Redo partial change * Move binding functions into interop folder Co-authored-by: Ben Parsons <9parsonsb@gmail.com>
This commit is contained in:
45
.github/workflows/build.yml
vendored
45
.github/workflows/build.yml
vendored
@ -4,6 +4,9 @@ on:
|
||||
branches: master
|
||||
pull_request:
|
||||
branches: '*'
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
- '.github/ISSUE_TEMPLATE/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@ -18,16 +21,21 @@ jobs:
|
||||
- name: Setup dotnet
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.x
|
||||
dotnet-version: 6.0.x
|
||||
- name: Build project
|
||||
run: dotnet build -c Release
|
||||
run: dotnet build -c Release -f net6.0
|
||||
- name: Test project
|
||||
run: dotnet test
|
||||
run: dotnet test -c Release -f net6.0
|
||||
publish:
|
||||
name: Build Release Package
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup dotnet
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
- name: Download Repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
@ -41,12 +49,12 @@ jobs:
|
||||
- name: echo tag
|
||||
run: echo ${{ steps.get-tag.outputs.info }}
|
||||
|
||||
- name: Download raylib Release
|
||||
uses: robinraju/release-downloader@v1.2
|
||||
- name: Download win-x64 Raylib Release
|
||||
uses: robinraju/release-downloader@v1.3
|
||||
with:
|
||||
repository: "raysan5/raylib"
|
||||
tag: ${{ steps.get-tag.outputs.info }}
|
||||
fileName: "*"
|
||||
fileName: "raylib-${{steps.get-tag.outputs.info}}_win64_msvc16.zip"
|
||||
|
||||
- name: extract win-x64
|
||||
uses: montudor/action-zip@v1
|
||||
@ -58,6 +66,13 @@ jobs:
|
||||
with:
|
||||
source: "raylib-win64/raylib-${{steps.get-tag.outputs.info}}_win64_msvc16/lib/raylib.dll"
|
||||
target: "Raylib-cs/runtimes/win-x64/native/raylib.dll"
|
||||
|
||||
- name: Download win-x86 Raylib Release
|
||||
uses: robinraju/release-downloader@v1.3
|
||||
with:
|
||||
repository: "raysan5/raylib"
|
||||
tag: ${{ steps.get-tag.outputs.info }}
|
||||
fileName: "raylib-${{steps.get-tag.outputs.info}}_win32_msvc16.zip"
|
||||
|
||||
- name: extract win-x86
|
||||
uses: montudor/action-zip@v1
|
||||
@ -69,6 +84,13 @@ jobs:
|
||||
with:
|
||||
source: "raylib-win86/raylib-${{steps.get-tag.outputs.info}}_win32_msvc16/lib/raylib.dll"
|
||||
target: "Raylib-cs/runtimes/win-x86/native/raylib.dll"
|
||||
|
||||
- name: Download linux-x64 Raylib Release
|
||||
uses: robinraju/release-downloader@v1.3
|
||||
with:
|
||||
repository: "raysan5/raylib"
|
||||
tag: ${{ steps.get-tag.outputs.info }}
|
||||
fileName: "raylib-${{steps.get-tag.outputs.info}}_linux_amd64.tar.gz"
|
||||
|
||||
- name: extract linux-x64
|
||||
run: mkdir -p raylib-linux64 && tar -xvf raylib-${{steps.get-tag.outputs.info}}_linux_amd64.tar.gz -C raylib-linux64
|
||||
@ -79,6 +101,13 @@ jobs:
|
||||
source: "raylib-linux64/raylib-${{steps.get-tag.outputs.info}}_linux_amd64/lib/libraylib.so.${{steps.get-tag.outputs.info}}"
|
||||
target: "Raylib-cs/runtimes/linux-x64/native/libraylib.so"
|
||||
|
||||
- name: Download osx-x64 Raylib Release
|
||||
uses: robinraju/release-downloader@v1.3
|
||||
with:
|
||||
repository: "raysan5/raylib"
|
||||
tag: ${{ steps.get-tag.outputs.info }}
|
||||
fileName: "raylib-${{steps.get-tag.outputs.info}}_macos.tar.gz"
|
||||
|
||||
- name: extract osx-x64
|
||||
run: mkdir -p raylib-osx64 && tar -xvf raylib-${{steps.get-tag.outputs.info}}_macos.tar.gz -C raylib-osx64
|
||||
|
||||
@ -96,7 +125,7 @@ jobs:
|
||||
xpath: "//PackageVersion"
|
||||
|
||||
- name: Create NuGet Package
|
||||
run: dotnet pack -c Release
|
||||
run: dotnet pack -c Release Raylib-cs
|
||||
|
||||
- name: Upload NuGet Package As Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
@ -108,4 +137,4 @@ jobs:
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: Raylib-cs/bin/Release/Raylib-cs.${{steps.get-nuget-version.outputs.info}}.nupkg
|
||||
files: Raylib-cs/bin/Release/Raylib-cs.${{steps.get-nuget-version.outputs.info}}.nupkg
|
||||
|
Reference in New Issue
Block a user