Skip to content

Commit 3be32ba

Browse files
committed
试试完整的编译流程
1 parent 1eddb46 commit 3be32ba

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
push:
88
branches:
99
- master
10+
- '*.*.*'
1011
tags:
1112
- "*"
1213
pull_request:
@@ -40,8 +41,8 @@ jobs:
4041
sudo apt-get update
4142
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
4243
43-
- name: Install ninja
44-
if: ${{ matrix.target == 'linux' || matrix.target == 'darwin' }}
44+
- name: Prepare container for musl
45+
if: ${{ matrix.target == 'linux' && matrix.libc == 'musl' }}
4546
run: |
4647
apk update
4748
apk add git ninja bash build-base nodejs linux-headers
@@ -51,12 +52,21 @@ jobs:
5152
submodules: recursive
5253

5354
- name: Build for Windows
54-
if: ${{ matrix.target == 'linux' || matrix.target == 'darwin' }}
55+
if: ${{ matrix.target == 'windows' }}
5556
run: .\make.bat ${{ matrix.platform }}
5657

57-
- name: Build for Non-Windows
58-
if: ${{ matrix.target == 'linux' || matrix.target == 'darwin' }}
59-
run: ./make.sh ${{ matrix.platform }}
58+
- name: Build for Linux
59+
if: ${{ matrix.target == 'linux' }}
60+
run: |
61+
sudo apt update
62+
sudo apt install ninja-build
63+
./make.sh ${{ matrix.platform }}
64+
65+
- name: Build for macOS
66+
if: ${{ matrix.target == 'darwin' }}
67+
run: |
68+
brew install ninja
69+
./make.sh ${{ matrix.platform }}
6070
6171
- name: Build for x64 glibc
6272
if: ${{ matrix.platform == 'linux-x64' && matrix.libc != 'musl' }}

0 commit comments

Comments
 (0)