瀏覽代碼

Update update_examples.yml

Ray 2 周之前
父節點
當前提交
e9f655d002
共有 1 個文件被更改,包括 8 次插入9 次删除
  1. 8 9
      .github/workflows/update_examples.yml

+ 8 - 9
.github/workflows/update_examples.yml

@@ -39,15 +39,14 @@ jobs:
       run: |
         cd tools/rexm/VS2022
         msbuild.exe rexm.sln /target:rexm /property:Configuration=Release /property:Platform=x64
-        cd ../../..
-        set REXM_EXAMPLES_BASE_PATH="examples"
-        set REXM_EXAMPLES_WEB_PATH="../raylib.com/examples"
-        set REXM_EXAMPLES_TEMPLATE_FILE_PATH="examples/examples_template.c"
-        set REXM_EXAMPLES_TEMPLATE_SCREENSHOT_PATH="examples/examples_template.png"
-        set REXM_EXAMPLES_COLLECTION_FILE_PATH="examples/examples_list.txt"
-        set REXM_EXAMPLES_VS2022_SLN_FILE="projects/VS2022/raylib.sln"
-        #set EMSDK_PATH="D:/a/raylib/raylib/emsdk-cache/emsdk-main"
-        .\tools\rexm\VS2022\build\rexm\bin\x64\Release\rexm.exe build core_basic_window
+        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"
+        rexm.exe build core_basic_window
         cd ../..
       shell: cmd