-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a37b9c
commit 9468c6c
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Commented while we wait for the new Electron versions to ship | ||
|
||
name: Cache | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
release: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 30 | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-10.15, windows-latest] | ||
|
||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Node.js, NPM and Yarn for Mac | ||
if: startsWith(matrix.os, 'macos') | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 15 | ||
|
||
- name: Install Node.js, NPM and Yarn for Windows | ||
if: startsWith(matrix.os, 'windows') | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Yarn | ||
run: | | ||
yarn install | ||
yarn clean | ||
yarn node-gyp clean | ||