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,15 +402,15 @@ 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
406
+ - name : Extract Profiling Node Prebuilt Binaries
407
+ uses : actions/download-artifact@v3
411
408
with :
412
- key : ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
413
- path : ${{ github.workspace }}/packages/*/*.tgz
409
+ name : profiling-node-binaries-${{ github.sha }}
410
+ path : ${{ github.workspace }}/packages/profiling-node/lib/
411
+
412
+ - name : Pack tarballs
413
+ run : yarn build:tarball
414
414
415
415
- name : Archive artifacts
416
416
uses : actions/upload-artifact@v4
@@ -985,8 +985,6 @@ jobs:
985
985
key : nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT }}
986
986
# On develop branch, we want to _store_ the cache (so it can be used by other branches), but never _restore_ from it
987
987
restore-keys : ${{ env.NX_CACHE_RESTORE_KEYS }}
988
- - name : Build tarballs
989
- run : yarn build:tarball --ignore @sentry/profiling-node
990
988
991
989
# Rebuild profiling by compiling TS and pull the precompiled binary artifacts
992
990
- name : Build Profiling Node
@@ -1001,21 +999,22 @@ jobs:
1001
999
# https://github.com/actions/upload-artifact/issues/478
1002
1000
if : |
1003
1001
(needs.job_get_metadata.outputs.changed_profiling_node_bindings == 'true') ||
1002
+ (needs.job_get_metadata.outputs.is_release == 'true') ||
1004
1003
(github.event_name != 'pull_request')
1005
1004
uses : actions/download-artifact@v3
1006
1005
with :
1007
1006
name : profiling-node-binaries-${{ github.sha }}
1008
1007
path : ${{ github.workspace }}/packages/profiling-node/lib/
1009
1008
1010
1009
- name : Build Profiling tarball
1011
- run : yarn build:tarball --scope @sentry/profiling-node
1010
+ run : yarn build:tarball
1012
1011
# End rebuild profiling
1013
1012
1014
1013
- name : Stores tarballs in cache
1015
1014
uses : actions/cache/save@v4
1016
1015
with :
1017
1016
path : ${{ github.workspace }}/packages/*/*.tgz
1018
- key : ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
1017
+ key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
1019
1018
1020
1019
job_e2e_tests :
1021
1020
name : E2E ${{ matrix.label || matrix.test-application }} Test
@@ -1111,7 +1110,7 @@ jobs:
1111
1110
uses : actions/cache/restore@v4
1112
1111
with :
1113
1112
path : ${{ github.workspace }}/packages/*/*.tgz
1114
- key : ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
1113
+ key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
1115
1114
1116
1115
- name : Get node version
1117
1116
id : versions
@@ -1202,13 +1201,13 @@ jobs:
1202
1201
with :
1203
1202
name : profiling-node-binaries-${{ github.sha }}
1204
1203
path : ${{ github.workspace }}/packages/profiling-node/lib/
1205
- - name : Build Profiling tarball
1206
- run : yarn build:tarball --scope @sentry/profiling-node
1204
+
1207
1205
- name : Restore tarball cache
1208
1206
uses : actions/cache/restore@v4
1209
1207
with :
1210
1208
path : ${{ github.workspace }}/packages/*/*.tgz
1211
- key : ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
1209
+ key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
1210
+ fail-on-cache-miss : true
1212
1211
1213
1212
- name : Get node version
1214
1213
id : versions
0 commit comments