Skip to content

Commit 825fb7e

Browse files
committed
遴选3.9.1的自动集成
1 parent 23259fc commit 825fb7e

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
push:
88
branches:
99
- master
10+
- 'v*.*.*'
1011
tags:
1112
- "*"
1213
pull_request:
@@ -46,21 +47,30 @@ jobs:
4647
apk update
4748
apk add git ninja bash build-base nodejs linux-headers
4849
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+
4956
- uses: actions/checkout@v4
5057
with:
5158
submodules: recursive
5259

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 }}
6063

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 }}
6474
6575
- name: Build for x64 glibc
6676
if: ${{ matrix.platform == 'linux-x64' && matrix.libc != 'musl' }}

0 commit comments

Comments
 (0)