Skip to content

Commit

Permalink
add rosetta for darwin management
Browse files Browse the repository at this point in the history
  • Loading branch information
PandoraQS committed Sep 13, 2024
1 parent af461f0 commit e931c55
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,23 @@ jobs:
- name: Checkout branch
uses: actions/checkout@v2

- name: Setup Node
- name: Install Rosetta on macOS (ARM64)
if: runner.os == 'macOS' && runner.arch == 'ARM64'
run: |
softwareupdate --install-rosetta --agree-to-license
- name: Setup Node.js (x86_64 through Rosetta on macOS ARM64)
if: runner.os == 'macOS' && runner.arch == 'ARM64'
run: |
arch -x86_64 /bin/bash -c "$(curl -fsSL https://nodejs.org/dist/v14.18.1/node-v14.18.1-darwin-x64.tar.gz | tar -xz)"
export PATH=$(pwd)/node-v14.18.1-darwin-x64/bin:$PATH
- name: Setup Node.js (Standard)
if: runner.os != 'macOS' || runner.arch != 'ARM64'
uses: actions/setup-node@v1
with:
node-version: '14.x'

- name: Get package version
uses: actions/github-script@v6
id: version
Expand Down

0 comments on commit e931c55

Please sign in to comment.