Skip to content

Commit 989597b

Browse files
Robu6/libs nuget example (#69)
* Adding libs examples. * Add libs action to build stage. * correct typo * run.sh assembly names. * secrets. * CCM-11007: Fixing log destination for Splunk forwarding (#58) * Robu6/libs nuget example (#57) * Adding libs examples. * Add libs action to build stage. * correct typo * run.sh assembly names. * rebased to main. * .... * <<< left in * Adding other example poc libs. * timeouts of actions increased to 10m from 3m. * version copy to abstract folder. * version file not in libs on github. * find .version and print on pub. * debugging in build. * include .version in libs - artifact hidden files. * correct data nuget package name. * Trying the docker actions. * Trying the docker actions. * Trying the docker actions. * Trying the docker actions. * Adding docker publish from artefact * Refactoring lib build --------- Co-authored-by: sidnhs <[email protected]>
1 parent af49022 commit 989597b

File tree

3 files changed

+38
-78
lines changed

3 files changed

+38
-78
lines changed

src/server/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ BASE_URL ?= "/"
22
VERSION ?= ""
33
SHELL = /bin/bash
44

5+
clean:
6+
find . -type d -name 'bin' -exec rm -rf "{}" +
7+
find . -type d -name 'obj' -exec rm -rf "{}" +
58

6-
build: version #VER=$$(cat .version) # Build the project artefact @Pipeline
9+
build: clean version #VER=$$(cat .version) # Build the project artefact @Pipeline
710
VER=$$(cat .version) && \
811
echo $$VER && \
912
./build.sh $$VER

src/server/_config.version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 0.2.0-20250708.200258+fdc7cef
1+
version: 0.2.0-20250709.093756+af49022

src/server/build.sh

Lines changed: 33 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -18,81 +18,38 @@ generate_nuget_version(){
1818
echo "TEST NUGET VERSION: $TEST_NUGET_VERSION"
1919
}
2020

21-
generate_nuget_version
22-
23-
echo "Building Abstractions."
24-
cd abstractions
25-
pwd
26-
cp ../.version .
27-
echo "Root Dir:"
28-
ls -la
29-
dotnet clean
30-
dotnet restore
31-
dotnet build --no-restore --configuration=Release
32-
dotnet publish --no-restore --configuration=Release /p:Version=${TEST_NUGET_VERSION}
33-
dotnet pack --configuration Release /p:Version=${TEST_NUGET_VERSION} --no-build
34-
echo "Release Dir :"
35-
ls -la bin/Release
36-
echo "net8.0 Dir :"
37-
ls -la bin/Release/net8.0
38-
echo "publish Dir :"
39-
ls -la bin/Release/net8.0/publish
40-
cd ..
41-
4221

43-
echo "Building Data."
44-
cd data
45-
pwd
46-
cp ../.version .
47-
echo "Root Dir:"
48-
ls -la
49-
dotnet clean
50-
dotnet restore
51-
dotnet build --no-restore --configuration=Release
52-
dotnet publish --no-restore --no-build --configuration=Release /p:Version=${TEST_NUGET_VERSION}
53-
dotnet pack --configuration Release /p:Version=${TEST_NUGET_VERSION} --no-build
54-
echo "Release Dir :"
55-
ls -la bin/Release
56-
echo "net8.0 Dir :"
57-
ls -la bin/Release/net8.0
58-
echo "publish Dir :"
59-
ls -la bin/Release/net8.0/publish
60-
cd ..
61-
62-
echo "Building Letter."
63-
cd letter
64-
pwd
65-
cp ../.version .
66-
echo "Root Dir:"
67-
ls -la
68-
dotnet clean
69-
dotnet restore
70-
dotnet build --no-restore --configuration=Release
71-
dotnet publish --no-restore --no-build --configuration=Release /p:Version=${TEST_NUGET_VERSION}
72-
dotnet pack --configuration Release /p:Version=${TEST_NUGET_VERSION} --no-build
73-
echo "Release Dir :"
74-
ls -la bin/Release
75-
echo "net8.0 Dir :"
76-
ls -la bin/Release/net8.0
77-
echo "publish Dir :"
78-
ls -la bin/Release/net8.0/publish
79-
cd ..
22+
build(){
23+
echo "0000 $0"
24+
echo "1111 $1"
25+
name=$1
26+
echo "Building $name"
27+
cd $name
28+
pwd
29+
cp ../.version .
30+
echo "Root Dir:"
31+
ls -la
32+
echo "Cleaning..."
33+
dotnet clean
34+
echo "Restoring..."
35+
dotnet restore /p:Version=${TEST_NUGET_VERSION}
36+
echo "Building..."
37+
dotnet build --no-restore --configuration Release /p:Version=${TEST_NUGET_VERSION}
38+
echo "Publishing..."
39+
dotnet publish --no-restore --no-build --configuration Release /p:Version=${TEST_NUGET_VERSION}
40+
echo "Packing..."
41+
dotnet pack --configuration Release /p:Version=${TEST_NUGET_VERSION} --no-build
42+
echo "Release Dir :"
43+
ls -la bin/Release
44+
echo "net8.0 Dir :"
45+
ls -la bin/Release/net8.0
46+
echo "publish Dir :"
47+
ls -la bin/Release/net8.0/publish
48+
cd ..
49+
}
8050

81-
echo "Building Host."
82-
cd host
83-
pwd
84-
cp ../.version .
85-
echo "Root Dir:"
86-
ls -la
87-
dotnet clean
88-
dotnet restore
89-
dotnet build --no-restore --configuration=Release
90-
dotnet publish --no-restore --no-build --configuration=Release /p:Version=${TEST_NUGET_VERSION}
91-
dotnet pack --configuration Release /p:Version=${TEST_NUGET_VERSION} --no-build
92-
echo "Release Dir :"
93-
ls -la bin/Release
94-
echo "net8.0 Dir :"
95-
ls -la bin/Release/net8.0
96-
echo "publish Dir :"
97-
ls -la bin/Release/net8.0/publish
98-
cd ..
51+
generate_nuget_version
52+
build "abstractions"
53+
build "data"
54+
build "letter"
55+
build "host"

0 commit comments

Comments
 (0)