File tree 8 files changed +57
-14
lines changed
actions/build-native-binary
8 files changed +57
-14
lines changed Original file line number Diff line number Diff line change 66
66
-DSUA_BUILD_NUMBER=${{ inputs.run_number }} \
67
67
-DSUA_BUILD_TESTS=NO \
68
68
..
69
- make
69
+ make -j
70
70
make install
71
71
shell : bash
72
72
82
82
-DSUA_BUILD_NUMBER=${{ inputs.run_number }} \
83
83
-DSUA_BUILD_TESTS=YES \
84
84
..
85
- make
85
+ make -j
86
86
make install
87
87
shell : bash
88
88
91
91
run : |
92
92
cd dist_${{ inputs.arch }}_testing/utest
93
93
./TestSelfUpdateAgent > ../../unit_tests_report.txt
94
+ shell : bash
95
+
96
+ - name : Generate reports
97
+ if : ${{ (inputs.arch=='amd64') && (success() || failure()) }}
98
+ run : |
99
+ cd dist_${{ inputs.arch }}_testing/utest
100
+
94
101
mkdir report
95
102
gcovr --root ../.. --html --html-details --output report/coverage.html -e ../../3rdparty -e ../../utest -e ../../src/main.cpp
103
+ gcovr --root ../.. --txt --output report/coverage.txt -e ../../3rdparty -e ../../utest -e ../../src/main.cpp
96
104
tar -czvf ../../code-coverage.tar.gz report
105
+
106
+ echo -e "### Code Coverage Summary\n" >> report.md
107
+ echo -e "\`\`\`" >> report.md
108
+ cat report/coverage.txt >> report.md
109
+ echo -e "\n\`\`\`\n" >> report.md
110
+
111
+ echo -e "### Unit Tests Results\n" >> report.md
112
+ echo -e "\`\`\`" >> report.md
113
+ cat ../../unit_tests_report.txt >> report.md
114
+ echo -e "\n\`\`\`\n" >> report.md
115
+
116
+ cat report.md > $GITHUB_STEP_SUMMARY
97
117
shell : bash
98
118
99
119
- name : Compress artifacts
Original file line number Diff line number Diff line change 29
29
contents : read
30
30
packages : write
31
31
id-token : write
32
+ pull-requests : write
32
33
strategy :
33
34
matrix :
34
35
arch : [ amd64, arm64 ]
Original file line number Diff line number Diff line change @@ -28,8 +28,12 @@ COPY CMakeLists.txt /work/CMakeLists.txt
28
28
RUN cd /work \
29
29
&& mkdir -p build_amd64/3rdparty/openssl \
30
30
&& mkdir -p dist_amd64 \
31
- && ./scripts/build_openssl_amd64.sh > /dev/null \
32
- && ./scripts/build_glib_amd64.sh > /dev/null \
31
+ && ./scripts/build_openssl_amd64.sh > /dev/null
32
+
33
+ RUN cd /work \
34
+ && ./scripts/build_glib_amd64.sh > /dev/null
35
+
36
+ RUN cd /work \
33
37
&& cd build_amd64 \
34
38
&& cmake \
35
39
-DCMAKE_INSTALL_PREFIX=../dist_amd64 \
@@ -39,8 +43,14 @@ RUN cd /work \
39
43
-DCMAKE_BUILD_TYPE="Release" \
40
44
-DSUA_BUILD_NUMBER=$GITHUB_RUN_NUMBER \
41
45
-DSUA_COMMIT_HASH=$GITHUB_COMMIT_HASH \
42
- .. \
43
- && make \
46
+ ..
47
+
48
+ RUN cd /work \
49
+ && cd build_amd64 \
50
+ && make -j
51
+
52
+ RUN cd /work \
53
+ && cd build_amd64 \
44
54
&& make install
45
55
46
56
#Define RUNTIME environment, the final image
Original file line number Diff line number Diff line change @@ -28,8 +28,12 @@ COPY CMakeLists.txt /work/CMakeLists.txt
28
28
RUN cd /work \
29
29
&& mkdir -p build_arm64/3rdparty/openssl \
30
30
&& mkdir -p dist_arm64 \
31
- && ./scripts/build_openssl_arm64.sh > /dev/null \
32
- && ./scripts/build_glib_arm64.sh > /dev/null \
31
+ && ./scripts/build_openssl_arm64.sh > /dev/null
32
+
33
+ RUN cd /work \
34
+ && ./scripts/build_glib_arm64.sh > /dev/null
35
+
36
+ RUN cd /work \
33
37
&& cd build_arm64 \
34
38
&& cmake \
35
39
-DCMAKE_INSTALL_PREFIX=../dist_arm64 \
@@ -39,8 +43,14 @@ RUN cd /work \
39
43
-DCMAKE_BUILD_TYPE="Release" \
40
44
-DSUA_BUILD_NUMBER=$GITHUB_RUN_NUMBER \
41
45
-DSUA_COMMIT_HASH=$GITHUB_COMMIT_HASH \
42
- .. \
43
- && make \
46
+ ..
47
+
48
+ RUN cd /work \
49
+ && cd build_arm64 \
50
+ && make -j
51
+
52
+ RUN cd /work \
53
+ && cd build_arm64 \
44
54
&& make install
45
55
46
56
#Define RUNTIME environment, the final image
Original file line number Diff line number Diff line change 3
3
cd 3rdparty/glib
4
4
meson subprojects download
5
5
meson setup -Dwrap_mode=forcefallback ../../build_amd64/glib
6
- meson compile -C ../../build_amd64/glib
6
+ meson compile -j ` nproc ` - C ../../build_amd64/glib
Original file line number Diff line number Diff line change 3
3
cd 3rdparty/glib
4
4
meson subprojects download
5
5
meson setup -Dwrap_mode=forcefallback --cross-file=../meson-cross-file-aarch64.txt ../../build_arm64/glib
6
- meson compile -C ../../build_arm64/glib
6
+ meson compile -j ` nproc ` - C ../../build_arm64/glib
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ cd build_amd64/3rdparty/openssl
10
10
shared \
11
11
-Wl,-rpath=$rootdir /build_amd64/lib \
12
12
-Wl,--enable-new-dtags
13
- make install_sw
13
+ make -j
14
+ make install_sw
Original file line number Diff line number Diff line change @@ -15,4 +15,5 @@ RANLIB=aarch64-linux-gnu-ranlib \
15
15
shared \
16
16
-Wl,-rpath=$rootdir /build_arm64/lib \
17
17
-Wl,--enable-new-dtags
18
- make install_sw
18
+ make -j
19
+ make install_sw
You can’t perform that action at this time.
0 commit comments