Skip to content

Commit 6defed6

Browse files
committed
update workflow
1 parent 91d9f01 commit 6defed6

File tree

1 file changed

+8
-38
lines changed

1 file changed

+8
-38
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -24,52 +24,22 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
include:
27-
- { os: ubuntu-22.04, target: linux, platform: linux-x64 }
28-
- { os: ubuntu-22.04, target: linux, platform: linux-arm64 }
29-
- { os: macos-latest, target: darwin, platform: darwin-x64 }
30-
- { os: macos-latest, target: darwin, platform: darwin-arm64 }
27+
- { os: ubuntu-22.04, target: linux, platform: linux-x64 }
28+
- { os: ubuntu-24.04-arm, target: linux, platform: linux-arm64 }
29+
- { os: macos-latest, target: darwin, platform: darwin-x64 }
30+
- { os: macos-latest, target: darwin, platform: darwin-arm64 }
31+
- { os: windows-latest, target: windows, platform: win32-x64 }
3132
#- { os: windows-latest, target: windows, platform: win32-ia32 } # 不再支持32位
32-
- { os: windows-latest, target: windows, platform: win32-x64 }
3333
runs-on: ${{ matrix.os }}
3434
steps:
35-
- name: Install aarch64-linux-gnu
36-
if: ${{ matrix.platform == 'linux-arm64' }}
37-
run: |
38-
sudo apt-get update
39-
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
40-
4135
- uses: actions/checkout@v4
4236
with:
4337
submodules: recursive
4438

45-
- name: Set up Node.js
46-
uses: actions/setup-node@v2
47-
with:
48-
node-version: '22' # 指定要安装的 Node.js 版本
39+
- uses: actboy168/setup-luamake@master
4940

50-
- name: Build for Windows
51-
if: ${{ matrix.target == 'windows' }}
52-
working-directory: ./server
53-
run: |
54-
.\make.bat ${{ matrix.platform }}
55-
rm -r ./build
56-
57-
- name: Build for Linux
58-
if: ${{ matrix.target == 'linux' }}
59-
working-directory: ./server
60-
run: |
61-
sudo apt update
62-
sudo apt install ninja-build
63-
./make.sh ${{ matrix.platform }}
64-
rm -r ./build
65-
66-
- name: Build for macOS
67-
if: ${{ matrix.target == 'darwin' }}
68-
working-directory: ./server
69-
run: |
70-
brew install ninja
71-
./make.sh ${{ matrix.platform }}
72-
rm -r ./build
41+
- name: Build
42+
run: luamake -platform ${{ matrix.platform }}
7343

7444
- name: Setting up workflow variables
7545
id: vars

0 commit comments

Comments
 (0)