-
Notifications
You must be signed in to change notification settings - Fork 70
62 lines (56 loc) · 1.61 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
# Runs the build based on the provided files in test.yml
name: build
on:
workflow_call:
inputs:
build_arch:
required: false
type: string
default: 'x86_64'
workflow_dispatch:
inputs:
build_arch:
type: choice
description: Build architecture
default: 'x86_64'
options:
- all
- x86_64
- arm64
permissions:
contents: read
jobs:
setup-build-matrix:
uses: ./.github/workflows/build-arch-matrix-generator.yml
with:
build_arch: ${{ inputs.build_arch }}
build:
name: build-agent-library
runs-on: ubuntu-latest
needs: setup-build-matrix
timeout-minutes: 300
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup-build-matrix.outputs.matrix-combinations) }}
env:
BUILD_ARCHITECTURE: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
- if: ${{ matrix.run_qemu }}
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Build
run: |
uname -a
echo "Detected CPUs: $(nproc)"
make -f .ci/Makefile build
- uses: actions/upload-artifact@v4
with:
name: package-parts-${{ matrix.arch }}
path: |
agent/native/_build/${{ matrix.arch }}-release/ext/elastic_apm*.so
agent/native/_build/${{ matrix.arch }}-release/ext/elastic_apm*.debug
agent/native/_build/${{ matrix.arch }}-release/loader/code/elastic_apm_loader.so
agent/native/_build/${{ matrix.arch }}-release/loader/code/elastic_apm_loader.debug