Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
469c4f7
debug print the working directory
JohnnyCena123 Aug 19, 2025
0d23000
trigger it on any branch (temporarily)
JohnnyCena123 Aug 19, 2025
4d18313
nope, wrong fix
JohnnyCena123 Aug 19, 2025
e20faf7
dummy commit to trigger the workflow
JohnnyCena123 Aug 19, 2025
b2f8b53
lets see if this works
JohnnyCena123 Aug 19, 2025
1879f09
trigger the workflow when updating it
JohnnyCena123 Aug 19, 2025
904f209
nice typo
JohnnyCena123 Aug 19, 2025
dad6f54
add missing dollar signs
JohnnyCena123 Aug 19, 2025
62cea34
debug list the contents of the repository
JohnnyCena123 Aug 19, 2025
05807a0
dir/s instead of ls
JohnnyCena123 Aug 19, 2025
6fe454e
remove this, no longer needed
JohnnyCena123 Aug 19, 2025
e0a7cf9
backslashes maybe? windows...
JohnnyCena123 Aug 19, 2025
cb8b3a5
this should be a forward slash
JohnnyCena123 Aug 19, 2025
accbdf7
remove no longer needed spam
JohnnyCena123 Aug 19, 2025
6614425
debug check if examples dir exists
JohnnyCena123 Aug 19, 2025
7d55566
LOG is disabled apparently
JohnnyCena123 Aug 19, 2025
8a6d994
...
JohnnyCena123 Aug 19, 2025
a4d2b96
temporarily disable this step to save time
JohnnyCena123 Aug 19, 2025
0b03c1d
ubuntu maybe
JohnnyCena123 Aug 19, 2025
ee41556
bash
JohnnyCena123 Aug 19, 2025
ff99f4d
install deps
JohnnyCena123 Aug 19, 2025
9b93605
link libc
JohnnyCena123 Aug 19, 2025
e23e8fb
link libm
JohnnyCena123 Aug 19, 2025
d05cdfd
now to test the rest
JohnnyCena123 Aug 19, 2025
899c8e4
emsdk is back
JohnnyCena123 Aug 19, 2025
bd4072b
add missing shaders
JohnnyCena123 Aug 20, 2025
f54d586
Update examples collection
github-actions[bot] Aug 20, 2025
8f62492
add indentation
JohnnyCena123 Aug 20, 2025
5485d22
Merge branch 'update-examples-fix' of https://github.com/JohnnyCena12…
JohnnyCena123 Aug 20, 2025
5c4ca70
remove emsdk cache
JohnnyCena123 Aug 20, 2025
54764ca
ignore emsdk cache
JohnnyCena123 Aug 20, 2025
e0920a1
Update examples collection
github-actions[bot] Aug 20, 2025
546e176
fix errors with the find command
JohnnyCena123 Aug 20, 2025
6b53052
Merge branch 'update-examples-fix' of https://github.com/JohnnyCena12…
JohnnyCena123 Aug 20, 2025
e3d8c3b
remove emsdk cache now
JohnnyCena123 Aug 20, 2025
7dd45d2
i forgot to actually add it to gitignore
JohnnyCena123 Aug 20, 2025
62afeca
fix error with git not finding anything to commit
JohnnyCena123 Aug 20, 2025
c2f3c36
global config instead of repo specific
JohnnyCena123 Aug 20, 2025
cfd3aea
Merge remote-tracking branch 'origin/master' into update-examples-fix
JohnnyCena123 Aug 20, 2025
a1ec042
clone raylib.com repo under the same owner as the raylib repo owner
JohnnyCena123 Aug 20, 2025
8427023
add proper access token
JohnnyCena123 Aug 20, 2025
acf19a6
reorganize it all
JohnnyCena123 Aug 20, 2025
7202132
Merge remote-tracking branch 'origin/master' into update-examples-fix
JohnnyCena123 Aug 20, 2025
e723471
remove non-existent example
JohnnyCena123 Aug 20, 2025
28c30de
clone raylib.com before running rexm
JohnnyCena123 Aug 20, 2025
c97f7f6
no extra slash
JohnnyCena123 Aug 20, 2025
76a5db1
Update examples collection
github-actions[bot] Aug 20, 2025
0df892d
copy updated examples to the right place
JohnnyCena123 Aug 20, 2025
917f6b7
Merge branch 'update-examples-fix' of https://github.com/JohnnyCena12…
JohnnyCena123 Aug 20, 2025
53f8cba
remove unnecessary debug line from rexm.c
JohnnyCena123 Aug 20, 2025
4e53903
Update examples collection
github-actions[bot] Aug 20, 2025
d6a5223
Merge remote-tracking branch 'origin/master' into update-examples-fix
JohnnyCena123 Aug 23, 2025
25f7003
Merge remote-tracking branch 'origin/master' into update-examples-fix
JohnnyCena123 Aug 24, 2025
99a19db
Update examples collection
github-actions[bot] Aug 24, 2025
1bd593b
use hardcoded absolute path to make
JohnnyCena123 Aug 24, 2025
eb73a79
Merge branch 'update-examples-fix' of https://github.com/JohnnyCena12…
JohnnyCena123 Aug 24, 2025
dde3bc6
add debug line
JohnnyCena123 Aug 24, 2025
a7acd8b
semicolon
JohnnyCena123 Aug 24, 2025
b37cd89
fix wrong handling of make path
JohnnyCena123 Aug 24, 2025
9b32a95
fix wrong cwd
JohnnyCena123 Aug 24, 2025
760a1bc
rebuild raylib for web after installing it
JohnnyCena123 Aug 24, 2025
9850e10
cleanuo
JohnnyCena123 Aug 24, 2025
e31692d
conditionally push to repos, never on PR
JohnnyCena123 Aug 24, 2025
dfc504e
build rexm with make for consistency
JohnnyCena123 Aug 24, 2025
bd52b28
Merge remote-tracking branch 'origin/master' into update-examples-fix
JohnnyCena123 Aug 24, 2025
44b3efb
remove workflow run results
JohnnyCena123 Aug 24, 2025
7fcc081
add back the examples report files
JohnnyCena123 Aug 24, 2025
5efeb30
pause automatic commits
JohnnyCena123 Aug 24, 2025
8c12edb
revert makefile changes
JohnnyCena123 Aug 24, 2025
667f06f
readd removed vs2022 project file
JohnnyCena123 Aug 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 44 additions & 40 deletions .github/workflows/update_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ on:
workflow_dispatch:
push:
paths:
- '.github/workflows/update_examples.yml'
- 'examples/**'
- 'tools/rexm/**'
pull_request:
paths:
- '.github/workflows/update_examples.yml'
- 'examples/**'
- 'tools/rexm/**'

jobs:
build:
runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- name: Checkout
Expand All @@ -22,51 +26,51 @@ jobs:
with:
version: 'latest'
actions-cache-folder: 'emsdk-cache'

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2

- name: Clone raylib.com repo to update files
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Clone raylib.com repo
run: |
git clone https://x-access-token:${GITHUB_TOKEN}@github.com/raysan5/raylib.com.git
shell: cmd
- name: Build and run rexm tool (VS2022 solution)
git clone https://x-access-token:${{ secrets.RAYLIB_DOT_COM_REPO_TOKEN }}@github.com/$GITHUB_REPOSITORY_OWNER/raylib.com.git
shell: bash

- name: Build and run rexm tool (GNU Makefile)
# rexm should update all required files in raylib and even raylib.com repo,
# but not sure if it can do that from an Action, maybe it requires manual copy
run: |
cd tools/rexm/VS2022
msbuild.exe rexm.sln /target:rexm /property:Configuration=Release /property:Platform=x64
cd ${{ github.workspace }}\tools\rexm\VS2022\build\rexm\bin\x64\Release
set REXM_EXAMPLES_BASE_PATH=${{ github.workspace }}\examples
set REXM_EXAMPLES_WEB_PATH=${{ github.workspace }}\..\raylib.com\examples
set REXM_EXAMPLES_TEMPLATE_FILE_PATH=${{ github.workspace }}\examples\examples_template.c
set REXM_EXAMPLES_TEMPLATE_SCREENSHOT_PATH=${{ github.workspace }}\examples\examples_template.png
set REXM_EXAMPLES_COLLECTION_FILE_PATH=${{ github.workspace }}\examples\examples_list.txt
set REXM_EXAMPLES_VS2022_SLN_FILE=${{ github.workspace }}\projects\VS2022\raylib.sln
set EMSDK_PATH=${{ github.workspace }}/emsdk-cache/emsdk-main
dir
rexm.exe build core_basic_window
cd ${{ github.workspace }}\..
dir
shell: cmd

sudo apt-get update && sudo apt-get install -y libopengl0 libglu1-mesa libx11-dev libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libgl1-mesa-dev libglu1-mesa-dev
cd "${{ github.workspace }}/src"
make
sudo make install
make clean
make PLATFORM=PLATFORM_WEB
cd ../tools/rexm/
make
export REXM_EXAMPLES_BASE_PATH="${{ github.workspace }}/examples"
export REXM_EXAMPLES_WEB_PATH="${{ github.workspace }}/raylib.com/examples"
export REXM_EXAMPLES_TEMPLATE_FILE_PATH="${{ github.workspace }}/examples/examples_template.c"
export REXM_EXAMPLES_TEMPLATE_SCREENSHOT_PATH="${{ github.workspace }}/examples/examples_template.png"
export REXM_EXAMPLES_COLLECTION_FILE_PATH="${{ github.workspace }}/examples/examples_list.txt"
export REXM_EXAMPLES_VS2022_SLN_FILE="${{ github.workspace }}/projects/VS2022/raylib.sln"
export EMSDK_PATH="${{ github.workspace }}/emsdk-cache/emsdk-main"
./rexm update
shell: bash

- name: Commit changes to raylib repo
if: github.event_name == 'push' && false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
#git config user.name "github-actions[bot]"
#git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
#git add -A
#git commit -m "Update examples collection"
#git push
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "Update examples collection" || echo "git exited with code 1, nothing changed"
git push
shell: bash

- name: Push changes to raylib.com repo
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name == 'push' && false
run: |
#git config --global user.name "github-actions[bot]"
#git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
#git add examples
#git commit -m "Update web examples"
#git push origin
cd raylib.com
git add -A
git commit -m "Update web examples" || echo "git exited with code 1, nothing changed"
git push origin
shell: bash
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@ tools/parser/raylib_parser
tools/rexm/rexm.exe
tools/rexm/rexm

# CI
emsdk-cache/
raylib.com/
Loading