From 5b22b68c000cef220e09ba0a543ac994c31ce9a3 Mon Sep 17 00:00:00 2001 From: Cody Tseng <64680921+CodyTseng@users.noreply.github.com> Date: Fri, 9 Feb 2024 16:26:44 +0800 Subject: [PATCH] feat: build on macos-14 (#2) --- .github/workflows/build.yml | 14 +++++++++++++- .github/workflows/release.yml | 14 ++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6475f87..7681dd4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,5 @@ name: Build -on: [push, pull_request] +on: [pull_request] jobs: build_on_linux: @@ -26,6 +26,18 @@ jobs: - name: build run: npm run make + build_on_mac_arm: + runs-on: macos-14 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@master + with: + node-version: 20 + - name: install dependencies + run: npm install + - name: build + run: npm run make + build_on_win: runs-on: windows-latest steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1153fa5..e603939 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,20 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npm run publish + publish_on_mac_arm: + runs-on: macos-14 + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@master + with: + node-version: 20 + - name: install dependencies + run: npm install + - name: publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npm run publish + publish_on_win: runs-on: windows-latest steps: