Skip to content

Commit f5a4e1c

Browse files
committed
GA 2.0.1 release
Squashed commit of the following: commit 2771062 Author: AndrasZiegler <andras.ziegler@silabs.com> Date: Fri Jan 31 14:38:45 2025 +0100 Fixing documentation (#27) commit eb8d13c Author: AndrasZiegler <andras.ziegler@silabs.com> Date: Fri Jan 31 14:25:39 2025 +0100 CRLF -> LF changes commit 0575133 Author: AndrasZiegler <andras.ziegler@silabs.com> Date: Fri Jan 31 07:20:51 2025 +0100 removed the input branch option (#26) commit 90cff49 Author: AndrasZiegler <andras.ziegler@silabs.com> Date: Mon Jan 13 11:30:09 2025 +0100 Changed the SQ testing architecture (#24) Now all the included workflows are running on github hosted runners. SonarQube can only run silicon labs internal PC-s. This PR contains a trigger workflow which calls the internal testing workflow. No internal workflow code is accessible only the result is visible. commit af91316 Author: AndrasZiegler <andras.ziegler@silabs.com> Date: Tue Dec 3 10:54:14 2024 +0100 cleaned up the old legacy names (#21) Build scripts and the SonarQube workflow is affected. commit e24564c Author: AndrasZiegler <andras.ziegler@silabs.com> Date: Wed Nov 27 13:25:19 2024 +0100 Now the code passes the code convention tool check (#18) - updated the code convention test with real output checking. Now the workflow fails when any part of the testsetup fails - Updated the project source code so now all the stages are passing during the code convention test workflow. commit cf42fdf Author: AndrasZiegler <andras.ziegler@silabs.com> Date: Tue Nov 26 13:23:21 2024 +0100 Create CODEOWNERS (#16) commit bc1fa82 Author: AndrasZiegler <andras.ziegler@silabs.com> Date: Mon Nov 25 16:32:59 2024 +0100 4 cla assistant doesnt store signatures (#14) Moved the CLA assistant signature database into an internal repository. Also now the CLA assistant uses a fork of the source code not the public repo. commit a02ca9b Author: silabs-akosj <146345861+silabs-akosj@users.noreply.github.com> Date: Fri Nov 22 13:39:54 2024 +0100 [12] there is a typo in the text (#13) The typos have been fixed! commit 31305fc Author: silabs-akosj <146345861+silabs-akosj@users.noreply.github.com> Date: Thu Nov 21 15:50:15 2024 +0100 Update readme, link to other BT examples (#11) commit 347324c Author: AndrasZiegler <andras.ziegler@silabs.com> Date: Thu Nov 21 15:34:01 2024 +0100 Updated CLA assistant workflow (#9) * modified cla db repo branch * fixed cla.dm path * updated cla assistant custom messages commit 2cf6042 Author: AndrasZiegler <andras.ziegler@silabs.com> Date: Thu Nov 21 10:35:47 2024 +0100 7 extend documentation (#8) * updated current workflow naming convention, added truffhog scan workflow * added Code of conduct and Contribbution guideline documents * changed SQ workflow to manual only
1 parent ab7f303 commit f5a4e1c

19 files changed

+187
-346
lines changed

.github/build-docker-image.sh

+53-53
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
1-
#!/bin/sh
2-
3-
display_help() {
4-
echo "Usage: $0 -i image_name -v version -r registry -a architecture " >&2
5-
echo
6-
echo " -i image_name Specify the image name, for example: bluetooth-AoA-example-build-env"
7-
echo " -v version Specify the version of docker image, for example: 1.0.0"
8-
echo " -r registry Specify the Docker registry to push the image to (optional) example: lx0017637.silabs.com:5000"
9-
echo " If internal registry is used, SonarQube will be included."
10-
echo " -a architecture Specify the architecture, for example: x86_64 or aarch64"
11-
echo
12-
exit 1
13-
}
14-
15-
image_name=""
16-
version="1.0.0"
17-
registry="none"
18-
architecture="x86_64"
19-
run_sonarqube_scanner="false"
20-
21-
# Process the options
22-
while getopts ":h:i:v:r:a:" opt; do
23-
case $opt in
24-
h) display_help
25-
exit;;
26-
i) image_name="$OPTARG";;
27-
v) version="$OPTARG";;
28-
r) registry="$OPTARG";;
29-
a) architecture="$OPTARG";;
30-
\?) echo "Invalid option -$OPTARG" >&2
31-
display_help
32-
exit 1;;
33-
:) echo "Option -$OPTARG requires an argument." >&2
34-
display_help
35-
exit 1;;
36-
esac
37-
done
38-
39-
if [ "$registry" = "lx0017637.silabs.com:5000" ] ; then
40-
echo "Internal silabs build with: $registry"
41-
run_sonarqube_scanner="true"
42-
fi
43-
44-
# Build the Docker image
45-
echo "Building Docker image: $image_name:$version for architecture: $architecture "
46-
docker build --build-arg ARCH="$architecture" --build-arg SONARQUBE="$run_sonarqube_scanner" -t "$image_name:$version" -f Dockerfile .
47-
48-
if [ -n "$registry" ] && [ "$registry" != "none" ] ; then
49-
docker tag "$image_name:$version" "$registry/$image_name:$version"
50-
docker push "$registry/$image_name:$version"
51-
else
52-
echo "Docker registry not specified, skipping tagging and pushing."
53-
fi
1+
#!/bin/sh
2+
3+
display_help() {
4+
echo "Usage: $0 -i image_name -v version -r registry -a architecture " >&2
5+
echo
6+
echo " -i image_name Specify the image name, for example: bluetooth-aoa-example-build-env"
7+
echo " -v version Specify the version of docker image, for example: 1.0.0"
8+
echo " -r registry Specify the Docker registry to push the image to (optional)"
9+
echo " If internal registry is used, SonarQube will be included."
10+
echo " -a architecture Specify the architecture, for example: x86_64 or aarch64"
11+
echo
12+
exit 1
13+
}
14+
15+
image_name=""
16+
version="1.0.0"
17+
registry="none"
18+
architecture="x86_64"
19+
run_sonarqube_scanner="false"
20+
21+
# Process the options
22+
while getopts ":h:i:v:r:a:" opt; do
23+
case $opt in
24+
h) display_help
25+
exit;;
26+
i) image_name="$OPTARG";;
27+
v) version="$OPTARG";;
28+
r) registry="$OPTARG";;
29+
a) architecture="$OPTARG";;
30+
\?) echo "Invalid option -$OPTARG" >&2
31+
display_help
32+
exit 1;;
33+
:) echo "Option -$OPTARG requires an argument." >&2
34+
display_help
35+
exit 1;;
36+
esac
37+
done
38+
39+
if [ "$registry" = "lx0017637.silabs.com:5000" ] ; then
40+
echo "Internal silabs build with: $registry"
41+
run_sonarqube_scanner="true"
42+
fi
43+
44+
# Build the Docker image
45+
echo "Building Docker image: $image_name:$version for architecture: $architecture "
46+
docker build --build-arg ARCH="$architecture" --build-arg SONARQUBE="$run_sonarqube_scanner" -t "$image_name:$version" -f Dockerfile .
47+
48+
if [ -n "$registry" ] && [ "$registry" != "none" ] ; then
49+
docker tag "$image_name:$version" "$registry/$image_name:$version"
50+
docker push "$registry/$image_name:$version"
51+
else
52+
echo "Docker registry not specified, skipping tagging and pushing."
53+
fi

.github/build-with-docker.sh

+61-61
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
#!/bin/sh
2-
3-
display_help() {
4-
echo "Usage: $0 -i image_name -v version -r registry -a architecture -c clean" >&2
5-
echo
6-
echo " -i image_name Specify the image name, for example: bluetooth-AoA-example-build-env"
7-
echo " -v version Specify the version of docker image, for example: 1.0.0"
8-
echo " -r registry Specify the Docker registry to push the image to"
9-
echo " -a architecture Specify the architecture, for example: x86_64 or aarch64 (optional)"
10-
echo " -c clean Specify 'clean' to remove the built Docker image"
11-
echo
12-
exit 1
13-
}
14-
15-
image_name="bluetooth-AoA-example-build-env"
16-
version="1.0.0"
17-
registry="none"
18-
architecture="x86_64"
19-
clean="false"
20-
21-
while getopts ":hi:v:r:a:c" opt; do
22-
case ${opt} in
23-
h )
24-
display_help
25-
exit 1;;
26-
i )
27-
image_name=$OPTARG;;
28-
v )
29-
version=$OPTARG;;
30-
r )
31-
registry=$OPTARG;;
32-
a )
33-
architecture=$OPTARG;;
34-
c )
35-
clean="true";;
36-
\? )
37-
display_help
38-
exit 1 ;;
39-
: )
40-
echo "Invalid option: $OPTARG requires an argument" 1>&2
41-
display_help
42-
exit 1 ;;
43-
esac
44-
done
45-
shift $((OPTIND -1))
46-
47-
echo "<----- Docker based Weber Wasp project building script ----->"
48-
49-
echo "Calling the docker image builder script..."
50-
51-
# Call build-docker-image.sh with arguments
52-
sh ./.github/build-docker-image.sh -i $image_name -v $version -r $registry -a $architecture || { echo "Failed to build the Docker image"; exit 1; }
53-
54-
echo "<----- Running the docker based build environment ----->"
55-
# Run the docker image
56-
docker run -u root --rm -v $(pwd):/home/jenkins/$image_name $image_name:$version /bin/sh -c "cd $image_name && make all"
57-
58-
if [ "$clean" = "true" ]; then
59-
docker rmi $image_name:$version
60-
echo "Clean mode activated. Docker image $image_name:$version is removed."
61-
fi
1+
#!/bin/sh
2+
3+
display_help() {
4+
echo "Usage: $0 -i image_name -v version -r registry -a architecture -c clean" >&2
5+
echo
6+
echo " -i image_name Specify the image name, for example: bluetooth-aoa-example-build-env"
7+
echo " -v version Specify the version of docker image, for example: 1.0.0"
8+
echo " -r registry Specify the Docker registry to push the image to"
9+
echo " -a architecture Specify the architecture, for example: x86_64 or aarch64 (optional)"
10+
echo " -c clean Specify 'clean' to remove the built Docker image"
11+
echo
12+
exit 1
13+
}
14+
15+
image_name="bluetooth-aoa-example-build-env"
16+
version="1.0.0"
17+
registry="none"
18+
architecture="x86_64"
19+
clean="false"
20+
21+
while getopts ":hi:v:r:a:c" opt; do
22+
case ${opt} in
23+
h )
24+
display_help
25+
exit 1;;
26+
i )
27+
image_name=$OPTARG;;
28+
v )
29+
version=$OPTARG;;
30+
r )
31+
registry=$OPTARG;;
32+
a )
33+
architecture=$OPTARG;;
34+
c )
35+
clean="true";;
36+
\? )
37+
display_help
38+
exit 1 ;;
39+
: )
40+
echo "Invalid option: $OPTARG requires an argument" 1>&2
41+
display_help
42+
exit 1 ;;
43+
esac
44+
done
45+
shift $((OPTIND -1))
46+
47+
echo "<----- Docker based Weber Wasp project building script ----->"
48+
49+
echo "Calling the docker image builder script..."
50+
51+
# Call build-docker-image.sh with arguments
52+
sh ./.github/build-docker-image.sh -i $image_name -v $version -r $registry -a $architecture || { echo "Failed to build the Docker image"; exit 1; }
53+
54+
echo "<----- Running the docker based build environment ----->"
55+
# Run the docker image
56+
docker run -u root --rm -v $(pwd):/home/jenkins/$image_name $image_name:$version /bin/sh -c "cd $image_name && make all"
57+
58+
if [ "$clean" = "true" ]; then
59+
docker rmi $image_name:$version
60+
echo "Clean mode activated. Docker image $image_name:$version is removed."
61+
fi

0 commit comments

Comments
 (0)