File tree 1 file changed +20
-10
lines changed
1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change 7
7
push :
8
8
branches :
9
9
- master
10
+ - ' v*.*.*'
10
11
tags :
11
12
- " *"
12
13
pull_request :
@@ -46,21 +47,30 @@ jobs:
46
47
apk update
47
48
apk add git ninja bash build-base nodejs linux-headers
48
49
50
+ - name : Prepare for Linux
51
+ if : ${{ matrix.target == 'linux' && matrix.libc != 'musl' }}
52
+ run : |
53
+ sudo apt update
54
+ sudo apt install ninja-build
55
+
49
56
- uses : actions/checkout@v4
50
57
with :
51
58
submodules : recursive
52
59
53
- - name : Build for others step-1
54
- if : ${{ matrix.platform != 'linux-x64' }}
55
- uses : actboy168/setup-luamake@master
56
-
57
- - name : Build for others step-2
58
- if : ${{ matrix.platform != 'linux-x64' }}
59
- run : luamake -platform ${{ matrix.platform }}
60
+ - name : Build for Windows
61
+ if : ${{ matrix.target == 'windows' }}
62
+ run : .\make.bat ${{ matrix.platform }}
60
63
61
- - name : Build for musl
62
- if : ${{ matrix.platform == 'linux-x64' && matrix.libc == 'musl' }}
63
- run : ./make.sh
64
+ - name : Build for Linux
65
+ if : ${{ matrix.target == 'linux' }}
66
+ run : |
67
+ ./make.sh ${{ matrix.platform }}
68
+
69
+ - name : Build for macOS
70
+ if : ${{ matrix.target == 'darwin' }}
71
+ run : |
72
+ brew install ninja
73
+ ./make.sh ${{ matrix.platform }}
64
74
65
75
- name : Build for x64 glibc
66
76
if : ${{ matrix.platform == 'linux-x64' && matrix.libc != 'musl' }}
You can’t perform that action at this time.
0 commit comments