Skip to content

Commit 1cd5ed3

Browse files
committed
Pull all the binaries together
1 parent 60251fe commit 1cd5ed3

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
job_compile:
11-
name: Compile profiling-node (v${{ matrix.node }}) ${{ matrix.target_platform || matrix.os }}, ${{ matrix.arch || matrix.container }}, ${{ contains(matrix.container, 'alpine') && 'musl' || 'glibc' }}
11+
name: Compile Binary (v${{ matrix.node }}) ${{ matrix.target_platform || matrix.os }}, ${{ matrix.arch || matrix.container }}, ${{ contains(matrix.container, 'alpine') && 'musl' || 'glibc' }}
1212
runs-on: ${{ matrix.os }}
1313
container:
1414
image: ${{ matrix.container }}
@@ -217,6 +217,34 @@ jobs:
217217
- name: Archive Binary
218218
uses: actions/upload-artifact@v4
219219
with:
220-
name: profiling-node-binaries-${{ github.sha }}-${{ matrix.binary }}
220+
name: profiling-node-binaries-${{ matrix.binary }}
221221
path: ${{ github.workspace }}/lib/sentry_cpu_profiler-${{matrix.binary}}.node
222222
if-no-files-found: error
223+
224+
job_build:
225+
name: Build Package
226+
needs: [job_compile]
227+
runs-on: ubuntu-latest
228+
steps:
229+
- name: Check out current commit
230+
uses: actions/checkout@v4
231+
- name: Set up Node
232+
uses: actions/setup-node@v4
233+
with:
234+
node-version-file: 'package.json'
235+
236+
- name: Install dependencies
237+
run: yarn install --ignore-engines --frozen-lockfile
238+
239+
- name: Build TypeScript
240+
run: yarn build:lib
241+
242+
- name: Extract Prebuilt Binaries
243+
uses: actions/download-artifact@v4
244+
with:
245+
pattern: profiling-node-binaries-*
246+
path: ${{ github.workspace }}/lib/
247+
merge-multiple: true
248+
249+
- name: Pack tarball
250+
run: yarn build:tarball

0 commit comments

Comments
 (0)