Watch
2
0
Fork
You've already forked raylib-cs
0
Commit graph raylib-cs/.github/workflows/build.yml
Author SHA1 Message Date
b207e633ae Default tests to local project reference. Can optionally use the nuget package. 2026-07-21 07:58:12 +01:00
tiger tiger tiger
565f0912ea
WASM support, using official binaries (#341)
* chg: New build system that uses the officially distributed binaries, bumped version to 8.0.0, simplified git workflow, removed deprecated OpenGL 1.1 functionality.

* chg: Modernize CI workflow, enable SourceLink

- Bump workflow actions to latest majors (Node 24); drop deprecated softprops/action-gh-release@v1
- Trigger push builds on main instead of master
- Create local nuget feed dir before pack (fixes NU1301)
- Enable Microsoft.SourceLink.GitHub for debugging symbols (ref PR #340)

* fix: centralized version data in Directory.build.props, and fixed various interop details that had incorrect function signatures

* chore: updated readme

* fix: version the native extract marker and chain download via DependsOnTargets

The .extracted marker now includes the raylib package name, so bumping
TargetRaylibTag re-extracts the new archive instead of silently keeping
(and packing/copying) the previous version's files.

_PrepareNativeLibrary and _StageWasmNative now depend directly on
_DownloadAndExtractInternal instead of CallTarget-ing it; dependency
targets run in the same project instance, so the resolved properties
(RaylibPackageName etc.) propagate naturally.

* fix: let the binding build for browser-wasm on both net8.0 and net10.0

The net8-era wasm workload (Microsoft.NET.Runtime.WebAssembly.Sdk 8.0.x,
auto-imported for RID browser-wasm) treats every browser-wasm project as
a wasm app: it forces OutputType=Exe after project evaluation (CS5001
for a classlib) and hooks its app-bundle build after Build, which errors
because a library has no assemblies to bundle. Opt Raylib-cs out via
DisableAutoWasmBuildApp (props time, before the workload defaults its
trigger) and pin OutputType back to Library in Directory.Build.targets
(evaluated after the workload props, so the assignment wins). net10's
wasm SDK needs neither workaround.

* chore: readme updated

* chg: simplifying build logic - a simple line in the documentation should save us the code here

* fix: Wrong signature of FrameBufferComplete

* chore: readme update

* feat: samples default to local project reference, and can optionally use the nuget package

* fix: Examples.csproj runs the download task when building locally
2026-07-20 18:39:19 +01:00
723ef1b4b9
Update workflow (#331) 2026-04-08 08:24:14 +01:00
Ben Parsons
f9787a8342
Enable Targeting .Net 8 (#297)
Fixes #295
2025-05-07 08:16:47 +01:00
91cfbeaf5e
Update to ubuntu 22.04 (#294) 2025-02-12 07:16:21 +00:00
54d02588b9 Update build.yml 2024-09-13 21:15:57 +01:00
dependabot[bot]
b26e4f73d1
Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows (#266)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.1.7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-04 17:14:28 +01:00
daa124aee1
Fix build (#254) 2024-06-20 21:10:01 +01:00
f7fd66b7eb
Native build improvements (#235)
* Add Raylib-cs.Native to solution
* Update build.yml to use local build
* Remove experimental android setup
2024-06-08 07:27:01 +01:00
njlr
2a1889403d
Pin to Ubuntu 20.04 (#223) 2024-01-14 08:23:37 +00:00
a94a92afb6
Revert default graphics version change (#219) 2024-01-07 22:28:16 +00:00
MrScautHD
269b6fe67f
Update Desktop to OpenGL 4.3 (#217)
Update Desktop to OpenGL 4.3 for linux and windows platforms
2024-01-06 12:52:18 +00:00
MrScautHD
43f1924faa
Port to Raylib-5.0.0 (#210)
Co-authored-by: ChrisDill <chris.rj.dill@gmail.com>
2023-12-27 12:17:57 +00:00
a4b6140a96 Disable android build in build.yml 2023-09-08 19:23:09 +01:00
5dc091fe56 Fix dependencies in build.yml 2023-09-05 19:32:59 +01:00
ae45736bd9 Fix build.yml naming 2023-09-05 19:30:05 +01:00
6df6a09dbf Run tests/build examples at start of build.yml 2023-09-05 19:27:20 +01:00
fda911da8f Fix build.yml 2023-09-05 07:23:48 +01:00
d716a80775 Convert android project to example project 2023-09-05 07:20:02 +01:00
df2b089119 Fix dependency issues in build.yml 2023-08-28 17:18:40 +01:00
bcb374b670 Update build.yml to include tests and examples 2023-08-28 16:59:22 +01:00
Angga Permana
c5560664ed
Fix unable to run Raylib-cs.Android on debug mode (#193)
* Call `RaylibSetAndroidCallback` before `OnCreate`
* CI: pack `Raylib-cs.Android` package
2023-08-27 08:12:46 +01:00
9b7bcec250 Update build.yml 2023-08-25 13:18:05 +01:00
fa682b00ac Fix build 2023-08-24 10:49:57 +01:00
Angga Permana
5ae2104c9a
Add experimental Android support (#190)
* Add `Raylib-cs.Android` project
* Update ci to handle android native libraries
* Update ci to pack android project
2023-08-23 13:18:50 +01:00
Angga Permana
e29d28de6b
Fix ci linux build (#183) 2023-08-08 17:18:39 +01:00
Ben Parsons
902bcebddc
Include snupkg in release & Enable SourceLink (#175)
Fixes #143
2023-07-24 18:03:01 +01:00
Angga Permana
d73f5d84c0
build raylib from sources (#170) 2023-07-24 12:45:01 +01:00
Ben Parsons
8c72abb141
Update build.yml (#140) 2022-11-01 07:31:23 +00:00
Ben Parsons
65d9150ec4
Update GitHub Actions (#126) 2022-09-03 23:48:11 +10:00
Ben Parsons
6f7eff030d
Update GitHub Actions (#125) 2022-09-03 23:19:32 +10:00
f9284d4505
Point release 4.0.0.2 (#122) 2022-09-03 23:13:16 +10:00
e5934b86ba 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>
2022-02-15 00:00:13 +11:00
Ben Parsons
0460d2c2db
Github Actions for Nuget Releases (#95)
* Add Raylib target tag to app.config

* Enable GitHub Actions on all PRs

* Create and upload NuGet package

Co-authored-by: ChrisDill <chris.rj.dill@gmail.com>
2021-10-02 21:21:11 +10:00
927af656ab Update build.yml to run tests 2021-01-15 10:45:05 +00:00
2c7d2a6358 Rename dotnetcore.yml to build.yml 2021-01-02 15:53:59 +00:00
Renamed from .github/workflows/dotnetcore.yml (Browse further)