@@ -134,42 +134,42 @@ jobs:
134
134
# `job_build` can't see `job_install_deps` and what it returned)
135
135
dependency_cache_key : ${{ needs.job_install_deps.outputs.dependency_cache_key }}
136
136
137
- # job_build_aws_lambda_layer:
138
- # name: Build AWS Lambda Layer
139
- # needs: job_build
140
- # runs-on: ubuntu-latest
141
- # steps:
142
- # - name: Check out current commit (${{ env.HEAD_COMMIT }})
143
- # uses: actions/checkout@v2
144
- # with:
145
- # ref: ${{ env.HEAD_COMMIT }}
146
- # - name: Set up Node
147
- # uses: actions/setup-node@v1
148
- # with:
149
- # node-version: ${{ env.DEFAULT_NODE_VERSION }}
150
- # - name: Check dependency cache
151
- # uses: actions/cache@v2
152
- # with:
153
- # path: ${{ env.CACHED_DEPENDENCY_PATHS }}
154
- # key: ${{ needs.job_build.outputs.dependency_cache_key }}
155
- # - name: Check build cache
156
- # uses: actions/cache@v2
157
- # with:
158
- # path: ${{ env.CACHED_BUILD_PATHS }}
159
- # key: ${{ env.BUILD_CACHE_KEY }}
160
- # - name: Get SDK version
161
- # run: |
162
- # export SDK_VERSION=$(cat dist-serverless/version)
163
- # echo "SDK_VERSION=$SDK_VERSION" | tee -a $GITHUB_ENV
164
- # - uses: actions/upload-artifact@v3
165
- # with:
166
- # name: ${{ env.HEAD_COMMIT }}
167
- # path: |
168
- # dist-serverless/*
169
- # - uses: getsentry/action-build-aws-lambda-extension@v1
170
- # with:
171
- # artifact_name: ${{ env.HEAD_COMMIT }}
172
- # zip_file_name: sentry-node-serverless-${{ env.SDK_VERSION }}.zip
137
+ job_build_aws_lambda_layer :
138
+ name : Build AWS Lambda Layer
139
+ needs : [job_get_metadata, job_build]
140
+ runs-on : ubuntu-latest
141
+ steps :
142
+ - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
143
+ uses : actions/checkout@v2
144
+ with :
145
+ ref : ${{ env.HEAD_COMMIT }}
146
+ - name : Set up Node
147
+ uses : actions/setup-node@v1
148
+ with :
149
+ node-version : ${{ env.DEFAULT_NODE_VERSION }}
150
+ - name : Check dependency cache
151
+ uses : actions/cache@v2
152
+ with :
153
+ path : ${{ env.CACHED_DEPENDENCY_PATHS }}
154
+ key : ${{ needs.job_build.outputs.dependency_cache_key }}
155
+ - name : Check build cache
156
+ uses : actions/cache@v2
157
+ with :
158
+ path : ${{ env.CACHED_BUILD_PATHS }}
159
+ key : ${{ env.BUILD_CACHE_KEY }}
160
+ - name : Get SDK version
161
+ run : |
162
+ export SDK_VERSION=$(cat dist-serverless/version)
163
+ echo "SDK_VERSION=$SDK_VERSION" | tee -a $GITHUB_ENV
164
+ - uses : actions/upload-artifact@v3
165
+ with :
166
+ name : ${{ env.HEAD_COMMIT }}
167
+ path : |
168
+ dist-serverless/*
169
+ - uses : getsentry/action-build-aws-lambda-extension@v1
170
+ with :
171
+ artifact_name : ${{ env.HEAD_COMMIT }}
172
+ zip_file_name : sentry-node-serverless-${{ env.SDK_VERSION }}.zip
173
173
174
174
job_size_check :
175
175
name : Size Check
0 commit comments