Skip to content

Commit

Permalink
fix: plfddf
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilb committed Sep 24, 2024
1 parent b027765 commit fe8464d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:

- name: Setup & Build
uses: ./actions/setup_and_build
with:
pkg_to_build: ${{ matrix.pkg_to_build }}

- name: Lint Files
# no need to lint files on all platforms
Expand Down Expand Up @@ -89,6 +91,8 @@ jobs:

- name: Setup & Build
uses: ./actions/setup_and_build
with:
pkg_to_build: 'windows_x64'

# we want to test on all platforms are some are testing the menus rendered (and are depent on the platform)
- name: Unit Test
Expand Down Expand Up @@ -130,6 +134,8 @@ jobs:

- name: Setup & Build
uses: ./actions/setup_and_build
with:
pkg_to_build: 'macos_x64'

# we want to test on all platforms are some are testing the menus rendered (and are depent on the platform)
- name: Unit Test
Expand Down
26 changes: 18 additions & 8 deletions actions/setup_and_build/action.yml
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:
Expand All @@ -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]
Expand All @@ -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

0 comments on commit fe8464d

Please sign in to comment.