Skip to content

Commit

Permalink
fix(ci): cannot release macOS APP (#957)
Browse files Browse the repository at this point in the history
error message:

```
 node_modules/macos-alias install: Traceback (most recent call last):
node_modules/macos-alias install:   File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module>
node_modules/macos-alias install:     import gyp  # noqa: E402
node_modules/macos-alias install:     ^^^^^^^^^^
node_modules/macos-alias install:   File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module>
node_modules/macos-alias install:     import gyp.input
node_modules/macos-alias install:   File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module>
node_modules/macos-alias install:     from distutils.version import StrictVersion
node_modules/macos-alias install: ModuleNotFoundError: No module named 'distutils'
node_modules/macos-alias install: gyp ERR! configure error
node_modules/macos-alias install: gyp ERR! stack Error: `gyp` failed with exit code: 1
node_modules/macos-alias install: gyp ERR! stack     at ChildProcess.onCpExit (/Users/runner/work/Follow/Follow/node_modules/node-gyp/lib/configure.js:325:16)
node_modules/macos-alias install: gyp ERR! stack     at ChildProcess.emit (node:events:519:28)
node_modules/macos-alias install: gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
node_modules/macos-alias install: gyp ERR! System Darwin 23.6.0
node_modules/macos-alias install: gyp ERR! command "/Users/runner/hostedtoolcache/node/22.9.0/arm64/bin/node" "/Users/runner/work/Follow/Follow/node_modules/.bin/node-gyp" "rebuild"
node_modules/macos-alias install: gyp ERR! cwd /Users/runner/work/Follow/Follow/node_modules/macos-alias
node_modules/macos-alias install: gyp ERR! node -v v22.9.0
node_modules/macos-alias install: gyp ERR! node-gyp -v v9.4.1
node_modules/macos-alias install: gyp ERR! not ok
node_modules/macos-alias install: Failed
```

Repair refers to: actions/runner#2958 (comment)

Test passed.

Signed-off-by: Kevin Cui <[email protected]>
  • Loading branch information
BlackHole1 authored Oct 15, 2024
1 parent 528ee2b commit 4a14738
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ jobs:
node-version: 22
cache: "pnpm"

- name: Install Python setuptools
if: runner.os == 'macOS'
run: brew install python-setuptools

- name: Install appdmg
if: runner.os == 'macOS'
run: pnpm add -g appdmg
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ jobs:
node-version: 22
cache: "pnpm"

- name: Install Python setuptools
if: runner.os == 'macOS'
run: brew install python-setuptools

- name: Install appdmg
if: runner.os == 'macOS'
run: pnpm add -g appdmg
Expand Down

0 comments on commit 4a14738

Please sign in to comment.