Skip to content

Commit b36b744

Browse files
committed
Update love-build.yml
1 parent 06584e1 commit b36b744

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

.github/workflows/love-build.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -48,37 +48,12 @@ jobs:
4848
- name: Compile Project
4949
run: yue -e build.yue src -d -y
5050

51-
- name: Fetch latest release of Yuescript .so and .dll
52-
run: |
53-
# Fetch the latest release JSON from GitHub API
54-
curl -s https://api.github.com/repos/pigpigyyy/Yuescript/releases/latest > latest.json
55-
56-
# Extract URLs for yue.so and yue.dll
57-
YUE_SO_URL=$(cat latest.json | jq -r '.assets[] | select(.name | endswith("yue-macos-universal-luajit-so.zip")) | .browser_download_url')
58-
YUE_DLL_URL=$(cat latest.json | jq -r '.assets[] | select(.name | endswith("yue-windows-x64-lua51-dll.7z")) | .browser_download_url')
59-
60-
# Download the files
61-
wget -q $YUE_SO_URL -O yue-macos-universal-luajit-so.zip
62-
wget -q $YUE_DLL_URL -O yue-windows-x64-lua51-dll.7z
63-
64-
# Unzip the files to the src directory
65-
unzip -o yue-macos-universal-luajit-so.zip -d src/
66-
7z x yue-windows-x64-lua51-dll.7z -osrc/
67-
68-
# Remove unneeded files
69-
rm latest.json yue-macos-universal-luajit-so.zip yue-windows-x64-lua51-dll.7z
70-
7151
# Build the applications
72-
- uses: nhartland/love-build@master
52+
- uses: nhartland/love-build@1
7353
with:
7454
app_name: ${{ steps.project_name.outputs.name }}
7555
love_version: "11.5"
7656

77-
- name: Copy yue.so and yue.dll to release directory
78-
run: |
79-
sudo cp src/yue.so release/
80-
sudo cp src/yue.dll release/
81-
8257
# Upload the built applications
8358
- uses: actions/upload-artifact@v4
8459
with:

0 commit comments

Comments
 (0)