mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-06 13:03:10 +08:00
Github Actions
This commit is contained in:
parent
f4903cc4c3
commit
f9b9dab3b0
1 changed files with 33 additions and 0 deletions
33
.github/workflows/build-macos.yaml
vendored
Normal file
33
.github/workflows/build-macos.yaml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
name: Build for macOS
|
||||||
|
|
||||||
|
on: workflow_dispatch
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [macos-15-arm64, macos-15]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Cache NodeJS modules
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
./node_modules
|
||||||
|
./app/node_modules
|
||||||
|
key: ${{ runner.OS }}-node-${{ hashFiles('package-lock.json') }}-${{ hashFiles('app/package-lock.json') }}
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Setup Keychain
|
||||||
|
run: npm run ci-setup-mac-keychain
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: npm run lint
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: DEBUG=electron-packager,electron-osx-sign npm run build
|
Loading…
Reference in a new issue