-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.92 KB
/
macos-intel-build-prebuilds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Prebuild for Mac x64
on:
workflow_dispatch:
jobs:
build-mac-intel:
runs-on: macos-latest
env:
LDFLAGS: '${LDFLAGS} -L/usr/local/opt/openssl@3/lib -L/usr/local/opt/krb5/lib'
CPPFLAGS: '${CPPFLAGS} -I/usr/local/opt/openssl@3/include -I/usr/local/opt/krb5/include'
NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: 18
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v2
with:
# Optional, GitHub token, a Personal Access Token with `public_repo` scope if needed
# Required, if the artifact is from a different repo
# Required, if the repo is private a Personal Access Token with `repo` scope is needed or GitHub token in a job where the permissions `action` scope set to `read`
github_token: ${{secrets.GITHUB_TOKEN}}
# Optional, workflow file name or ID
# If not specified, will be inferred from run_id (if run_id is specified), or will be the current workflow
workflow: discover-and-prepare-upstream-native-modules.yml
# Optional, the status or conclusion of a completed workflow to search for
# Can be one of a workflow conclusion:
# "failure", "success", "neutral", "cancelled", "skipped", "timed_out", "action_required"
# Or a workflow status:
# "completed", "in_progress", "queued"
# Use the empty string ("") to ignore status or conclusion in the search
workflow_conclusion: success
name: modulesToBuildForElectron
# Openssl3 and krb5 are already installed on Github host Mac OS runners
- name: Install toolkit
run: npm install --no-optional
- name: Build native modules on Mac OS x64
run: npm run rebuild-custom-for-target