File tree 2 files changed +18
-3
lines changed
2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,9 @@ jobs:
163
163
- name : Test phobos
164
164
if : ' !matrix.coverage'
165
165
run : ci/run.sh test_phobos
166
+ - name : Test self-compile
167
+ if : ' !matrix.coverage' # already re-built with enabled coverage
168
+ run : ENABLE_RELEASE=0 ci/run.sh rebuild
166
169
- name : Upload coverage report
167
170
if : matrix.coverage
168
171
run : ci/run.sh codecov
@@ -252,3 +255,7 @@ jobs:
252
255
echo '::group::Test phobos'
253
256
ci/run.sh test_phobos
254
257
echo '::endgroup::'
258
+
259
+ echo '::group::Test self-compile'
260
+ ENABLE_RELEASE=0 ci/run.sh rebuild
261
+ echo '::endgroup::'
Original file line number Diff line number Diff line change @@ -77,14 +77,22 @@ build() {
77
77
# self-compile dmd
78
78
rebuild () {
79
79
local compare=${1:- 0}
80
+
81
+ local dotexe=" "
82
+ local conf=" dmd.conf"
83
+ if [ " $OS_NAME " == " windows" ]; then
84
+ dotexe=" .exe"
85
+ conf=" sc.ini"
86
+ fi
87
+
80
88
# `generated` gets cleaned in the next step, so we create another _generated
81
89
# The nested folder hierarchy is needed to conform to those specified in
82
90
# the generated dmd.conf
83
91
mkdir -p _${build_path}
84
- cp $build_path /dmd _${build_path} /host_dmd
85
- cp $build_path /dmd. conf _${build_path}
92
+ cp $build_path /dmd$dotexe _${build_path} /host_dmd$dotexe
93
+ cp $build_path /$ conf _${build_path} /
86
94
rm -rf $build_path
87
- generated/build -j$N MODEL=$MODEL HOST_DMD=_${build_path} /host_dmd DFLAGS=" $CI_DFLAGS " ENABLE_RELEASE=${ENABLE_RELEASE:- 1} dmd
95
+ generated/build -j$N MODEL=$MODEL HOST_DMD=_${build_path} /host_dmd$dotexe DFLAGS=" $CI_DFLAGS " ENABLE_RELEASE=${ENABLE_RELEASE:- 1} dmd
88
96
89
97
# compare binaries to test reproducible build
90
98
if [ $compare -eq 1 ]; then
You can’t perform that action at this time.
0 commit comments