chore: share gh actions logic between workflows
parent
2d9fb7f18a
commit
509dd76b49
@ -0,0 +1,37 @@
|
||||
name: 'Setup and build'
|
||||
description: 'Setup and build Session Desktop'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Install node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
- name: Cache Desktop node_modules
|
||||
id: cache-desktop-modules
|
||||
uses: actions/cache@v3
|
||||
if: runner.os != 'Windows'
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-${{ 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/setup-msbuild@v1.3.1
|
||||
if: runner.os == 'Windows'
|
||||
|
||||
- name: Setup node for windows
|
||||
if: runner.os == 'Windows'
|
||||
shell: bash
|
||||
run: |
|
||||
yarn global add node-gyp@latest
|
||||
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
if: steps.cache-desktop-modules.outputs.cache-hit != 'true'
|
||||
run: yarn install --frozen-lockfile --network-timeout 600000
|
||||
|
||||
- name: Generate and concat files
|
||||
shell: bash
|
||||
run: yarn build-everything
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue