49
49
${{ github.workspace }}/packages/utils/esm
50
50
51
51
BUILD_CACHE_KEY : ${{ github.event.inputs.commit || github.sha }}
52
- BUILD_CACHE_TARBALL_KEY : tarball-${{ github.event.inputs.commit || github.sha }}
52
+ BUILD_PROFILING_NODE_CACHE_TARBALL_KEY : profiling-node- 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
@@ -403,15 +403,15 @@ jobs:
403
403
uses : ./.github/actions/restore-cache
404
404
env :
405
405
DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
406
- - name : Profiling
406
+ - name : Pack tarballs
407
407
# Profiling tarball is built separately as we assemble the precompiled binaries
408
408
run : yarn build:tarball --ignore @sentry/profiling-node
409
409
410
410
- name : Restore profiling tarball
411
- uses : actions/download-artifact @v4
411
+ uses : actions/cache/restore @v4
412
412
with :
413
- name : profiling-node-tarball- ${{ github.sha }}
414
- path : packages/profiling-node
413
+ key : ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
414
+ path : ${{ github.workspace }}/ packages/*/*.tgz
415
415
416
416
- name : Archive artifacts
417
417
uses : actions/upload-artifact@v4
@@ -1001,7 +1001,7 @@ jobs:
1001
1001
if : |
1002
1002
(needs.job_get_metadata.outputs.changed_profiling_node_bindings == 'true') ||
1003
1003
(github.event_name != 'pull_request')
1004
- uses : actions/download-artifact@v4
1004
+ uses : actions/download-artifact@v3
1005
1005
with :
1006
1006
name : profiling-node-binaries-${{ github.sha }}
1007
1007
path : ${{ github.workspace }}/packages/profiling-node/lib/
@@ -1014,7 +1014,7 @@ jobs:
1014
1014
uses : actions/cache/save@v4
1015
1015
with :
1016
1016
path : ${{ github.workspace }}/packages/*/*.tgz
1017
- key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
1017
+ key : ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
1018
1018
1019
1019
job_e2e_tests :
1020
1020
name : E2E ${{ matrix.label || matrix.test-application }} Test
@@ -1121,7 +1121,7 @@ jobs:
1121
1121
if : |
1122
1122
(needs.job_get_metadata.outputs.changed_profiling_node_bindings == 'true') ||
1123
1123
(github.event_name != 'pull_request')
1124
- uses : actions/download-artifact@v4
1124
+ uses : actions/download-artifact@v3
1125
1125
with :
1126
1126
name : profiling-node-binaries-${{ github.sha }}
1127
1127
path : ${{ github.workspace }}/packages/profiling-node/lib/
@@ -1139,7 +1139,7 @@ jobs:
1139
1139
uses : actions/cache/restore@v4
1140
1140
with :
1141
1141
path : ${{ github.workspace }}/packages/*/*.tgz
1142
- key : ${{ env.BUILD_CACHE_TARBALL_KEY }}
1142
+ key : ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
1143
1143
1144
1144
- name : Get node version
1145
1145
id : versions
@@ -1481,7 +1481,7 @@ jobs:
1481
1481
- name : Archive Binary
1482
1482
# @TODO: v4 breaks convenient merging of same name artifacts
1483
1483
# https://github.com/actions/upload-artifact/issues/478
1484
- uses : actions/upload-artifact@v4
1484
+ uses : actions/upload-artifact@v3
1485
1485
with :
1486
1486
name : profiling-node-binaries-${{ github.sha }}
1487
1487
path : |
0 commit comments