|
4 | 4 | schedule: |
5 | 5 | # Run every day at 3:15 AM. |
6 | 6 | - cron: '15 3 * * *' |
| 7 | + pull_request: |
| 8 | + branches: ["**"] |
| 9 | + paths: |
| 10 | + - cmd/otelcol-ebpf-profiler/manifest.yaml |
7 | 11 |
|
8 | 12 | concurrency: |
9 | 13 | group: ${{ github.workflow }}-${{ github.ref_name }} |
|
50 | 54 | run: | |
51 | 55 | go install go.opentelemetry.io/build-tools/issuegenerator@v0.28.1 |
52 | 56 | issuegenerator -path /tmp/testresults |
| 57 | +
|
| 58 | + otelcol-ebpf-profiler: |
| 59 | + strategy: |
| 60 | + matrix: |
| 61 | + include: |
| 62 | + - { runner: ubuntu-24.04, use-upstream: true } |
| 63 | + - { runner: ubuntu-24.04, use-upstream: false } |
| 64 | + - { runner: ubuntu-24.04-arm, use-upstream: true } |
| 65 | + - { runner: ubuntu-24.04-arm, use-upstream: false } |
| 66 | + runs-on: ${{ matrix.runner }} |
| 67 | + steps: |
| 68 | + - name: Checkout Repo |
| 69 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 70 | + - name: Set up Go Stable |
| 71 | + uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 |
| 72 | + with: |
| 73 | + go-version: stable |
| 74 | + - name: Clone Collector |
| 75 | + if: ${{ matrix.use-upstream }} |
| 76 | + run: | |
| 77 | + collector_path=/tmp/opentelemetry-collector |
| 78 | + git clone --depth=1 https://github.com/open-telemetry/opentelemetry-collector.git $collector_path |
| 79 | + - name: Setup replace statements |
| 80 | + if: ${{ matrix.use-upstream }} |
| 81 | + run: | |
| 82 | + COLLECTOR_PATH=/tmp/opentelemetry-collector make otel-from-tree |
| 83 | + - name: Build otelcol-ebpf-profiler |
| 84 | + run: | |
| 85 | + make otelcol-ebpf-profiler |
| 86 | + - name: Generate Issue |
| 87 | + if: failure() |
| 88 | + env: |
| 89 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 90 | + run: | |
| 91 | + go install go.opentelemetry.io/build-tools/issuegenerator@v0.28.1 |
| 92 | + issuegenerator -path /tmp/testresults |
0 commit comments