Skip to content

Commit 2f70836

Browse files
committed
Add workflow for the deployer
1 parent 97e16ee commit 2f70836

File tree

3 files changed

+46
-3
lines changed

3 files changed

+46
-3
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: .NET Instrumentation Deployer Add-On
2+
3+
on:
4+
push:
5+
paths:
6+
- 'packaging/dotnet-instr-deployer-add-on/**'
7+
pull_request:
8+
paths:
9+
- 'packaging/dotnet-instr-deployer-add-on/**'
10+
workflow_dispatch:
11+
12+
env:
13+
GO_VERSION: 1.23.6
14+
15+
jobs:
16+
build:
17+
runs-on: windows-latest
18+
19+
steps:
20+
21+
- name: Check out the codebase.
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Go
25+
uses: actions/setup-go@v5
26+
with:
27+
go-version: ${{ env.GO_VERSION }}
28+
29+
- name: Unit tests
30+
working-directory: ./packaging/dotnet-instr-deployer-add-on
31+
shell: bash
32+
run: make test
33+
34+
- name: Build and Package the .NET Instrumentation Deployer Add-On
35+
working-directory: ./packaging/dotnet-instr-deployer-add-on
36+
shell: bash
37+
run: make build-pack
38+
39+
- name: Upload the .NET Instrumentation Deployer Add-On
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: splunk_otel_dotnet_deployer
43+
path: ./packaging/dotnet-instr-deployer-add-on/out/distribution/splunk_otel_dotnet_deployer.tgz

packaging/dotnet-instr-deployer-add-on/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ include ../../Makefile.Common
22

33
MOD_INPUT_NAME = splunk_otel_dotnet_deployer
44

5-
.PHONY: all
6-
all: download-dotnet-assets build pack
5+
.PHONY: build-pack
6+
build-pack: download-dotnet-assets build pack
77

88
.PHONY: download-dotnet-assets
99
download-dotnet-assets:

packaging/dotnet-instr-deployer-add-on/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ configuration options.
2828

2929
This project was developed on Windows, using `MINGW64` tools and the `bash`
3030
provided by Git for Windows. Check the [Makefile](./Makefile) for the available
31-
targets - the default target generates the technical add-on under
31+
targets - use the `build-pack` target to generate the technical add-on under
3232
`./out/distribution`.
3333

3434
### Sources

0 commit comments

Comments
 (0)