mirror of
https://github.com/electron/electron.git
synced 2026-01-06 22:24:03 -05:00
28 lines
923 B
YAML
28 lines
923 B
YAML
name: 'Install Dependencies'
|
|
description: 'Installs yarn depdencies using cache when available'
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Get yarn cache directory path
|
|
shell: bash
|
|
id: yarn-cache-dir-path
|
|
run: echo "dir=$(node src/electron/script/yarn.js config get cacheFolder)" >> $GITHUB_OUTPUT
|
|
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
id: yarn-cache
|
|
with:
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('src/electron/yarn.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-yarn-
|
|
- name: Install Dependencies
|
|
shell: bash
|
|
run: |
|
|
cd src/electron
|
|
if [ "$TARGET_ARCH" = "x86" ]; then
|
|
export npm_config_arch="ia32"
|
|
fi
|
|
node script/yarn.js install --immutable
|
|
if [ "$BUILD_TYPE" = "win" ]; then
|
|
node node_modules/dugite/script/download-git.js
|
|
fi
|