From bc2d691042a2d6d08bbc134eba04cf309415bb04 Mon Sep 17 00:00:00 2001 From: Brian Wang <wangbuke@gmail.com> Date: Tue, 5 Dec 2023 17:28:49 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d5425a..f396ab6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - platform: [ubuntu-latest, macos-11] + platform: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.platform }} steps: @@ -50,19 +50,19 @@ jobs: - name: Prebuild for mac - if: matrix.platform == 'macos-11' + if: matrix.platform == 'macos-latest' run: rm -rf deps/libs/darwin_* && cp -a deps/Makefile deps/quickjs - name: Build darwin amd64 - if: matrix.platform == 'macos-11' + if: matrix.platform == 'macos-latest' run: mkdir -p deps/libs/darwin_amd64 && cd deps/quickjs && make clean && make libquickjs.a && mv libquickjs.a ../libs/darwin_amd64 - name: Build darwin arm64 - if: matrix.platform == 'macos-11' + if: matrix.platform == 'macos-latest' run: mkdir -p deps/libs/darwin_arm64 && cd deps/quickjs && make clean && make -e CONFIG_DARWIN_ARM64=y libquickjs.a && mv libquickjs.a ../libs/darwin_arm64 - name: Create PR For Darwin - if: matrix.platform == 'macos-11' + if: matrix.platform == 'macos-latest' uses: peter-evans/create-pull-request@v5 with: commit-message: Update QuickJS Static Library For Darwin