ubuntu maybe
This commit is contained in:
parent
a4d2b9654f
commit
0b03c1d0f9
37
.github/workflows/update_examples.yml
vendored
37
.github/workflows/update_examples.yml
vendored
|
|
@ -15,7 +15,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
@ -28,9 +28,6 @@ jobs:
|
||||||
version: 'latest'
|
version: 'latest'
|
||||||
actions-cache-folder: 'emsdk-cache'
|
actions-cache-folder: 'emsdk-cache'
|
||||||
|
|
||||||
- name: Setup MSBuild
|
|
||||||
uses: microsoft/setup-msbuild@v2
|
|
||||||
|
|
||||||
- name: Clone raylib.com repo to update files
|
- name: Clone raylib.com repo to update files
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
@ -38,24 +35,26 @@ jobs:
|
||||||
git clone https://x-access-token:${GITHUB_TOKEN}@github.com/raysan5/raylib.com.git "${{ github.workspace }}/../raylib.com"
|
git clone https://x-access-token:${GITHUB_TOKEN}@github.com/raysan5/raylib.com.git "${{ github.workspace }}/../raylib.com"
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Build and run rexm tool (VS2022 solution)
|
- name: Build and run rexm tool (GNU Makefile)
|
||||||
# rexm should update all required files in raylib and even raylib.com repo,
|
# 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
|
# but not sure if it can do that from an Action, maybe it requires manual copy
|
||||||
run: |
|
run: |
|
||||||
cd tools\rexm\VS2022
|
cd "${{ github.workspace }}/src"
|
||||||
msbuild.exe rexm.sln /target:rexm /property:Configuration=Release /property:Platform=x64
|
make
|
||||||
cd ..\..\..
|
sudo make install
|
||||||
set REXM_EXAMPLES_BASE_PATH="${{ github.workspace }}\examples"
|
cd ../tools/rexm/
|
||||||
set REXM_EXAMPLES_WEB_PATH="${{ github.workspace }}\..\raylib.com\examples"
|
clang rexm.c -lraylib -o rexm
|
||||||
set REXM_EXAMPLES_TEMPLATE_FILE_PATH="${{ github.workspace }}examples\examples_template.c"
|
export REXM_EXAMPLES_BASE_PATH="${{ github.workspace }}/examples"
|
||||||
set REXM_EXAMPLES_TEMPLATE_SCREENSHOT_PATH="${{ github.workspace }}examples\examples_template.png"
|
export REXM_EXAMPLES_WEB_PATH="${{ github.workspace }}/../raylib.com/examples"
|
||||||
set REXM_EXAMPLES_COLLECTION_FILE_PATH="${{ github.workspace }}\examples\examples_list.txt"
|
export REXM_EXAMPLES_TEMPLATE_FILE_PATH="${{ github.workspace }}examples/examples_template.c"
|
||||||
set REXM_EXAMPLES_VS2022_SLN_FILE="${{ github.workspace }}\projects\VS2022\raylib.sln"
|
export REXM_EXAMPLES_TEMPLATE_SCREENSHOT_PATH="${{ github.workspace }}examples/examples_template.png"
|
||||||
set EMSDK_PATH="${{ github.workspace }}\emsdk-cache\emsdk-main"
|
export REXM_EXAMPLES_COLLECTION_FILE_PATH="${{ github.workspace }}/examples/examples_list.txt"
|
||||||
.\tools\rexm\VS2022\build\rexm\bin\x64\Release\rexm.exe update
|
export REXM_EXAMPLES_VS2022_SLN_FILE="${{ github.workspace }}/projects/VS2022/raylib.sln"
|
||||||
cd ..\..
|
export EMSDK_PATH="${{ github.workspace }}/emsdk-cache/emsdk-main"
|
||||||
shell: cmd
|
./rexm update
|
||||||
|
cd ../..
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Commit changes to raylib repo
|
- name: Commit changes to raylib repo
|
||||||
run: |
|
run: |
|
||||||
#git config user.name "github-actions[bot]"
|
#git config user.name "github-actions[bot]"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user