49
49
${{ github.workspace }}/packages/utils/esm
50
50
51
51
BUILD_CACHE_KEY : build-cache-${{ github.event.inputs.commit || github.sha }}
52
- BUILD_PROFILING_NODE_CACHE_TARBALL_KEY : profiling-node- tarball-${{ github.event.inputs.commit || github.sha }}
52
+ BUILD_CACHE_TARBALL_KEY : tarball-${{ github.event.inputs.commit || github.sha }}
53
53
54
54
# GH will use the first restore-key it finds that matches
55
55
# So it will start by looking for one from the same branch, else take the newest one it can find elsewhere
@@ -402,16 +402,9 @@ jobs:
402
402
uses : ./.github/actions/restore-cache
403
403
env :
404
404
DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
405
- - name : Pack tarballs
406
- # Profiling tarball is built separately as we assemble the precompiled binaries
407
- run : yarn build:tarball --ignore @sentry/profiling-node
408
405
409
- - name : Restore profiling tarball
410
- uses : actions/cache/restore@v4
411
- with :
412
- key : ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
413
- path : ${{ github.workspace }}/packages/profiling-node/*.tgz
414
- fail-on-cache-miss : true
406
+ - name : Pack tarballs
407
+ run : yarn build:tarball
415
408
416
409
- name : Archive artifacts
417
410
uses : actions/upload-artifact@v4
@@ -986,8 +979,6 @@ jobs:
986
979
key : nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT }}
987
980
# On develop branch, we want to _store_ the cache (so it can be used by other branches), but never _restore_ from it
988
981
restore-keys : ${{ env.NX_CACHE_RESTORE_KEYS }}
989
- - name : Build tarballs
990
- run : yarn build:tarball --ignore @sentry/profiling-node
991
982
992
983
# Rebuild profiling by compiling TS and pull the precompiled binary artifacts
993
984
- name : Build Profiling Node
@@ -1002,21 +993,22 @@ jobs:
1002
993
# https://github.com/actions/upload-artifact/issues/478
1003
994
if : |
1004
995
(needs.job_get_metadata.outputs.changed_profiling_node_bindings == 'true') ||
996
+ (needs.job_get_metadata.outputs.is_release == 'true') ||
1005
997
(github.event_name != 'pull_request')
1006
998
uses : actions/download-artifact@v3
1007
999
with :
1008
1000
name : profiling-node-binaries-${{ github.sha }}
1009
1001
path : ${{ github.workspace }}/packages/profiling-node/lib/
1010
1002
1011
1003
- name : Build Profiling tarball
1012
- run : yarn build:tarball --scope @sentry/profiling-node
1004
+ run : yarn build:tarball
1013
1005
# End rebuild profiling
1014
1006
1015
1007
- name : Stores tarballs in cache
1016
1008
uses : actions/cache/save@v4
1017
1009
with :
1018
- path : ${{ github.workspace }}/packages/profiling-node /*.tgz
1019
- key : ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
1010
+ path : ${{ github.workspace }}/packages/* /*.tgz
1011
+ key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
1020
1012
1021
1013
job_e2e_tests :
1022
1014
name : E2E ${{ matrix.label || matrix.test-application }} Test
@@ -1108,6 +1100,12 @@ jobs:
1108
1100
env :
1109
1101
DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
1110
1102
1103
+ - name : Restore tarball cache
1104
+ uses : actions/cache/restore@v4
1105
+ with :
1106
+ path : ${{ github.workspace }}/packages/*/*.tgz
1107
+ key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
1108
+
1111
1109
- name : Get node version
1112
1110
id : versions
1113
1111
run : |
@@ -1201,8 +1199,8 @@ jobs:
1201
1199
- name : Restore tarball cache
1202
1200
uses : actions/cache/restore@v4
1203
1201
with :
1204
- path : ${{ github.workspace }}/packages/profiling-node /*.tgz
1205
- key : ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
1202
+ path : ${{ github.workspace }}/packages/* /*.tgz
1203
+ key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
1206
1204
fail-on-cache-miss : true
1207
1205
1208
1206
- name : Get node version
0 commit comments