From 8039f96ee28185304c1a546ea253a195347d2fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 14 May 2024 18:18:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E6=98=AF=E5=88=86=E5=BC=80=E6=9D=A5?= =?UTF-8?q?=E5=86=99=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec9ecff9e..d29eb76f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,7 +46,12 @@ jobs: run: | apk update apk add git ninja bash build-base nodejs linux-headers - alias sudo='' + + - name: Prepare for Linux + if: ${{ matrix.target == 'linux' && matrix.libc != 'musl' }} + run: | + sudo apt update + sudo apt install ninja-build - uses: actions/checkout@v4 with: @@ -59,8 +64,6 @@ jobs: - name: Build for Linux if: ${{ matrix.target == 'linux' }} run: | - sudo apt update - sudo apt install ninja-build ./make.sh ${{ matrix.platform }} - name: Build for macOS