Skip to content

Commit 8039f96

Browse files
committed
还是分开来写吧
1 parent 4beadad commit 8039f96

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ jobs:
4646
run: |
4747
apk update
4848
apk add git ninja bash build-base nodejs linux-headers
49-
alias sudo=''
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
5055
5156
- uses: actions/checkout@v4
5257
with:
@@ -59,8 +64,6 @@ jobs:
5964
- name: Build for Linux
6065
if: ${{ matrix.target == 'linux' }}
6166
run: |
62-
sudo apt update
63-
sudo apt install ninja-build
6467
./make.sh ${{ matrix.platform }}
6568
6669
- name: Build for macOS

0 commit comments

Comments
 (0)