forked from signalapp/Signal-Desktop
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Showing
2 changed files
with
24 additions
and
8 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
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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
name: 'Setup and build' | ||
description: 'Setup and build Session Desktop' | ||
inputs: | ||
pkg_to_build: | ||
description: 'the package we are currently building (used as key for the cached node_modules)' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
|
@@ -12,14 +17,6 @@ runs: | |
with: | ||
python-version: '3.11' | ||
|
||
- name: Cache Desktop node_modules | ||
id: cache-desktop-modules | ||
uses: actions/cache@v3 | ||
if: runner.os != 'Windows' | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('package.json', 'yarn.lock', 'patches/**') }} | ||
|
||
# Not having this will break the windows build because the PATH won't be set by msbuild. | ||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
@@ -31,11 +28,24 @@ runs: | |
run: | | ||
yarn global add node-gyp@latest | ||
- uses: actions/cache/restore@v4 | ||
id: cache-desktop-modules | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-${{ runner.arch }}-${{ inputs.pkg_to_build }}-${{ hashFiles('package.json', 'yarn.lock', 'patches/**') }} | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
if: steps.cache-desktop-modules.outputs.cache-hit != 'true' | ||
run: yarn install --frozen-lockfile --network-timeout 600000 | ||
|
||
- uses: actions/cache/save@v4 | ||
id: cache-desktop-modules | ||
if: runner.os != 'Windows' | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-${{ runner.arch }}-${{ inputs.pkg_to_build }}-${{ hashFiles('package.json', 'yarn.lock', 'patches/**') }} | ||
|
||
- name: Generate and concat files | ||
shell: bash | ||
run: yarn build-everything |