1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

Update native cache to contain dist folder

This commit is contained in:
Daniel García
2024-07-08 18:29:13 +02:00
parent 16f032acaf
commit 7e72114315
2 changed files with 19 additions and 5 deletions

View File

@@ -174,6 +174,7 @@ jobs:
with: with:
path: | path: |
apps/desktop/desktop_native/napi/*.node apps/desktop/desktop_native/napi/*.node
apps/desktop/desktop_native/proxy/dist/*
${{ env.RUNNER_TEMP }}/.cargo/registry ${{ env.RUNNER_TEMP }}/.cargo/registry
${{ env.RUNNER_TEMP }}/.cargo/git ${{ env.RUNNER_TEMP }}/.cargo/git
key: rust-${{ runner.os }}-${{ hashFiles('apps/desktop/desktop_native/**/*') }} key: rust-${{ runner.os }}-${{ hashFiles('apps/desktop/desktop_native/**/*') }}
@@ -301,7 +302,9 @@ jobs:
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1 uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
id: cache id: cache
with: with:
path: apps/desktop/desktop_native/napi/*.node path: |
apps/desktop/desktop_native/napi/*.node
apps/desktop/desktop_native/proxy/dist/*
key: rust-${{ runner.os }}-${{ hashFiles('apps/desktop/desktop_native/**/*') }} key: rust-${{ runner.os }}-${{ hashFiles('apps/desktop/desktop_native/**/*') }}
- name: Build Native Module - name: Build Native Module
@@ -584,7 +587,9 @@ jobs:
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1 uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
id: cache id: cache
with: with:
path: apps/desktop/desktop_native/napi/*.node path: |
apps/desktop/desktop_native/napi/*.node
apps/desktop/desktop_native/proxy/dist/*
key: rust-${{ runner.os }}-${{ hashFiles('apps/desktop/desktop_native/**/*') }} key: rust-${{ runner.os }}-${{ hashFiles('apps/desktop/desktop_native/**/*') }}
- name: Build Native Module - name: Build Native Module
@@ -748,7 +753,9 @@ jobs:
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1 uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
id: cache id: cache
with: with:
path: apps/desktop/desktop_native/napi/*.node path: |
apps/desktop/desktop_native/napi/*.node
apps/desktop/desktop_native/proxy/dist/*
key: rust-${{ runner.os }}-${{ hashFiles('apps/desktop/desktop_native/**/*') }} key: rust-${{ runner.os }}-${{ hashFiles('apps/desktop/desktop_native/**/*') }}
- name: Build Native Module - name: Build Native Module
@@ -957,7 +964,9 @@ jobs:
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1 uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
id: cache id: cache
with: with:
path: apps/desktop/desktop_native/napi/*.node path: |
apps/desktop/desktop_native/napi/*.node
apps/desktop/desktop_native/proxy/dist/*
key: rust-${{ runner.os }}-${{ hashFiles('apps/desktop/desktop_native/**/*') }} key: rust-${{ runner.os }}-${{ hashFiles('apps/desktop/desktop_native/**/*') }}
- name: Build Native Module - name: Build Native Module
@@ -1152,7 +1161,9 @@ jobs:
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1 uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
id: cache id: cache
with: with:
path: apps/desktop/desktop_native/napi/*.node path: |
apps/desktop/desktop_native/napi/*.node
apps/desktop/desktop_native/proxy/dist/*
key: rust-${{ runner.os }}-${{ hashFiles('apps/desktop/desktop_native/**/*') }} key: rust-${{ runner.os }}-${{ hashFiles('apps/desktop/desktop_native/**/*') }}
- name: Build Native Module - name: Build Native Module

View File

@@ -22,6 +22,9 @@ if (!crossPlatform) {
return; return;
} }
// Note that targets contains pairs of [rust target, node arch]
// We do this to move the output binaries to a location that can
// be easily accessed from electron-builder using ${os} and ${arch}
let targets = []; let targets = [];
switch (process.platform) { switch (process.platform) {
case "win32": case "win32":