File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ jobs:
6161 sudo mkdir -p /usr/local/lib
6262 ./XEngine_LINEnv.sh -i 3
6363
64- $response = Invoke-RestMethod -Uri " https://api.github.com/repos/libxengine/libxengine/releases/latest" -Headers @{"Accept"="application/vnd.github.v3+json"}
65- $latest_tag = $response.tag_name
66- Write-Output "Latest tag is $latest_tag"
67- echo "::set-output name=tag::$latest_tag"
68-
64+ latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
65+ wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Mac_Arm64.zip
66+ unzip XEngine_Mac_Arm64.zip
67+ cd XEngine_Mac_Arm64
68+
6969 sudo cp -rf ./XEngine_Include /usr/local/include
7070 sudo find ./XEngine_Mac -name "*.dylib" -exec cp {} /usr/local/lib \;
7171 # 编译
Original file line number Diff line number Diff line change @@ -57,13 +57,10 @@ jobs:
5757 run : |
5858 $response = Invoke-RestMethod -Uri "https://api.github.com/repos/libxengine/libxengine/releases/latest" -Headers @{"Accept"="application/vnd.github.v3+json"}
5959 $latest_tag = $response.tag_name
60- Write-Output "Latest tag is $latest_tag"
6160
6261 $url = "https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Windows_x86-32.zip"
6362 Invoke-WebRequest -Uri $url -OutFile "./XEngine_Windows_x86-32.zip"
6463 Expand-Archive -Path ./XEngine_Windows_x86-32.zip -DestinationPath ./XEngine_Windows_x86-32 -Force
65- cd XEngine_Windows_x86-32
66- echo y | ./XEngine_WINEnv32.bat
6764
6865 echo "XENGINE_INCLUDE=${{ github.workspace }}/XEngine_Windows_x86-32" | Out-File -FilePath $env:GITHUB_ENV -Append
6966 echo "XENGINE_LIB32=${{ github.workspace }}/XEngine_Windows_x86-32/XEngine_Windows" | Out-File -FilePath $env:GITHUB_ENV -Append
You can’t perform that action at this time.
0 commit comments