Skip to content

Commit

Permalink
Windows build examples actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sol-vin committed Sep 3, 2023
1 parent acd3437 commit 88b4dee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup VS Dev Environment
uses: seanmiddleditch/gha-setup-vsdevenv@v4
- name: raylib-cr post-install
run: powershell lib/raylib-cr/rsrc/install-lib.ps1
run: powershell rsrc/install-ga.ps1
- name: set env
run: |
echo ("LIB=" + $env:LIB + ";" + $pwd + "\libs") >> $env:GITHUB_ENV
Expand Down
17 changes: 17 additions & 0 deletions rsrc/install-ga.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cl /c rsrc\miniaudio-tests\miniaudiohelpers.c
lib miniaudiohelpers.obj
mkdir libs
copy miniaudiohelpers.lib libs\miniaudiohelpers.lib
del miniaudiohelpers.obj
del miniaudiohelpers.lib

git clone https://github.com/raysan5/raylib
cd raylib
mkdir build
cd build
cmake .. -DBUILD_SHARED_LIBS=ON
cmake --build .
copy raylib\Debug\raylib.lib ..\..\libs\raylib.lib
copy raylib\Debug\raylib.dll ..\..\libs\raylib.dll
cd ..\..
del raylib

0 comments on commit 88b4dee

Please sign in to comment.