File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 - name : Checkout repository
2525 uses : actions/checkout@v7
2626
27- - name : Checkout dependency repository (xengine)
28- uses : actions/checkout@v7
29- with :
30- repository : libxengine/libxengine
31- path : libxengine
32-
3327 - name : Set TERM variable
3428 run : |
3529 echo "TERM=xterm" >> $GITHUB_ENV
4034
4135 - name : Set up Dependency Environment
4236 run : |
43- echo -e $(pwd)
44- cd libxengine
37+ latest_tag=$(curl -s -H "Authorization: Bearer ${{ github.token }}" https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
38+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_24.04_x86-64.zip
39+ unzip ./XEngine_UBuntu_24.04_x86-64.zip -d ./XEngine_UBuntu_24.04_x86-64
40+ cd XEngine_UBuntu_24.04_x86-64
41+
4542 chmod +x ./XEngine_LINEnv.sh
4643 sudo ./XEngine_LINEnv.sh -i 3
4744
Original file line number Diff line number Diff line change @@ -20,20 +20,17 @@ jobs:
2020 - name : Checkout main repository code
2121 uses : actions/checkout@v7
2222
23- # 检出依赖的xengine仓库到指定的xengine目录
24- - name : Checkout dependency repository (xengine)
25- uses : actions/checkout@v7
26- with :
27- repository : libxengine/libxengine
28- path : libxengine
29-
3023 - name : Set TERM variable
3124 run : echo "TERM=xterm" >> $GITHUB_ENV
3225
3326 - name : Set up Dependency x86_64 Environment
3427 if : matrix.os == 'macos-15-intel' || matrix.os == 'macos-26-intel'
3528 run : |
36- cd libxengine
29+ latest_tag=$(curl -s -H "Authorization: Bearer ${{ github.token }}" https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
30+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Mac_x86-64.zip
31+ unzip ./XEngine_Mac_x86-64.zip -d ./XEngine_Mac_x86-64.zip
32+ cd XEngine_Mac_x86-64
33+
3734 chmod 777 *
3835 ./XEngine_LINEnv.sh -i 3
3936 - name : Set up Dependency Arm64 Environment
4643
4744 chmod 777 *
4845 ./XEngine_LINEnv.sh -i 3
49-
5046 - name : install library package
5147 run : |
5248 brew install luajit -y
Original file line number Diff line number Diff line change @@ -20,18 +20,19 @@ jobs:
2020 - name : Checkout main repository code
2121 uses : actions/checkout@v7
2222
23- # 检出依赖的xengine仓库到指定的xengine目录
24- - name : Checkout dependency repository (xengine)
25- uses : actions/checkout@v7
26- with :
27- repository : libxengine/libxengine
28- path : libxengine
29-
3023 - name : Set up Dependency x86_64 Environment
3124 if : matrix.platform == 'x64'
3225 run : |
33- echo "XENGINE_INCLUDE=${{ github.workspace }}/libxengine" | Out-File -FilePath $env:GITHUB_ENV -Append
34- echo "XENGINE_LIB64=${{ github.workspace }}/libxengine/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
26+ $response = Invoke-RestMethod -Uri "https://api.github.com/repos/libxengine/libxengine/releases/latest" -Headers @{"Accept"="application/vnd.github.v3+json"}
27+ $latest_tag = $response.tag_name
28+ Write-Host "Latest Tag: $latest_tag"
29+
30+ $url = "https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Windows_x86-64.zip"
31+ Invoke-WebRequest -Uri $url -OutFile "XEngine_Windows_x86-64.zip"
32+ Expand-Archive -Path ./XEngine_Windows_x86-64.zip -DestinationPath ./XEngine_Windows -Force
33+
34+ echo "XENGINE_INCLUDE=${{ github.workspace }}/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
35+ echo "XENGINE_LIB64=${{ github.workspace }}/XEngine_Windows/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
3536 shell : pwsh
3637 - name : Set up Dependency x86_32 Environment
3738 if : matrix.platform == 'x86'
Original file line number Diff line number Diff line change @@ -22,20 +22,17 @@ jobs:
2222 - name : Checkout main repository code
2323 uses : actions/checkout@v7
2424
25- # 检出依赖的xengine仓库到指定的xengine目录
26- - name : Checkout dependency repository (xengine)
27- uses : actions/checkout@v7
28- with :
29- repository : libxengine/libxengine
30- path : libxengine
31-
3225 - name : Set TERM variable
3326 run : echo "TERM=xterm" >> $GITHUB_ENV
3427
3528 - name : Set up Dependency ubuntu24.04 Environment
3629 if : matrix.os == 'ubuntu-24.04'
3730 run : |
38- cd libxengine
31+ latest_tag=$(curl -s -H "Authorization: Bearer ${{ github.token }}" https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
32+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_UBuntu_24.04_x86-64.zip
33+ unzip ./XEngine_UBuntu_24.04_x86-64.zip -d ./XEngine_UBuntu_24.04_x86-64
34+ cd XEngine_UBuntu_24.04_x86-64
35+
3936 chmod 777 *
4037 sudo ./XEngine_LINEnv.sh -i 3
4138 - name : Set up Dependency ubuntu22.04 Environment
You can’t perform that action at this time.
0 commit comments