From 926a7b1fdc410f7bee7a303f9ba1a053af6b4803 Mon Sep 17 00:00:00 2001 From: Eshan Shafeeq Date: Wed, 3 May 2023 15:01:18 +0800 Subject: [PATCH] feat(workflows): add support for ARM Macs in release.yml (#28) * feat(workflows): add support for ARM Macs in release.yml This commit adds support for ARM Macs in the release.yml workflow by including a new target and os combination. Additionally, Node.js is now set up and dependencies are installed before uploading release assets. --- .github/workflows/release.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 415714c..2545a0b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,12 +10,13 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: - - ubuntu-latest - - macos-latest - target: - - x86_64-unknown-linux-gnu - - aarch64-apple-darwin + include: + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + - os: macos-latest + target: x86_64-apple-darwin + - os: macos-latest + target: aarch64-apple-darwin steps: - name: Checkout code uses: actions/checkout@v2 @@ -52,6 +53,13 @@ jobs: draft: false prerelease: false + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: 14 + + - name: Install deps + run: npm install @actions/glob - name: Upload release assets uses: actions/github-script@v5 with: