File tree Expand file tree Collapse file tree 5 files changed +18
-6
lines changed Expand file tree Collapse file tree 5 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 44
44
-e GITHUB_RUN_NUMBER=%GITHUB_RUN_NUMBER% ^
45
45
-e RUNNER_ARCH=%RUNNER_ARCH% ^
46
46
-e CI_SCRIPT=ON ^
47
- cristianbindea/scopy2-mingw64:latest C:\msys64\usr\bin\bash.exe -c '/home/docker/scopy/ci/windows/build_and_create_installer.sh'
47
+ cristianbindea/scopy2-mingw64:latest C:\msys64\usr\bin\bash.exe -c '/home/docker/scopy/ci/windows/build_and_create_installer.sh run_workflow '
48
48
49
49
- name : Set short git commit SHA
50
50
shell : bash
Original file line number Diff line number Diff line change 1
1
*
2
+ ! build_and_create_installer.sh
2
3
! mingw_toolchain.sh
3
4
! windows_build_process.sh
4
5
! sigrokdecode-windows-fix.patch
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ DEBUG_FOLDER=$ARTIFACT_FOLDER/debug-$ARCH
26
26
PYTHON_FILES=$STAGING_DIR /lib/python3.*
27
27
DLL_DEPS=$( cat $SRC_FOLDER /ci/windows/mingw_dll_deps)
28
28
EMU_BUILD_FOLDER=$WORKDIR /iio-emu/build
29
- STAGING_AREA=$SRC_FOLDER /ci/windows/staging
30
29
REGMAP_XMLS=$BUILD_FOLDER /plugins/plugins/regmap/xmls
31
30
32
31
# Generate build status info for the about page
@@ -170,18 +169,27 @@ create_installer() {
170
169
popd
171
170
}
172
171
172
+ # move the staging folder that contains the tools needed for the build to the known location
173
+ move_tools (){
174
+ [ -d /home/docker/staging ] && mv /home/docker/staging $STAGING_AREA || echo " Staging folder not found or already moved"
175
+ if [ ! -d $STAGING_AREA ]; then
176
+ echo " Missing tools folder, downloading now"
177
+ download_tools
178
+ fi
179
+ }
180
+
181
+
173
182
run_workflow (){
174
- download_tools
183
+ [ " $CI_SCRIPT " == " ON " ] && move_tools || download_tools
175
184
build_scopy
176
185
build_iio-emu
177
- download_tools
178
186
deploy_app
179
187
bundle_drivers
180
188
extract_debug_symbols
181
189
create_installer
182
190
}
183
191
184
- run_workflow
192
+ # run_workflow
185
193
186
194
for arg in $@ ; do
187
195
$arg
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ WORKDIR C:\\msys64\\home\\docker
31
31
32
32
COPY mingw_toolchain.sh C:/msys64/home/docker/scripts/mingw_toolchain.sh
33
33
COPY windows_build_process.sh C:/msys64/home/docker/scripts/windows_build_process.sh
34
+ COPY build_and_create_installer.sh C:/msys64/home/docker/scripts/build_and_create_installer.sh
34
35
COPY sigrokdecode-windows-fix.patch C:/msys64/home/docker/scripts/sigrokdecode-windows-fix.patch
35
36
36
37
RUN C:\m sys64\u sr\b in\b ash.exe -lc "pacman --noconfirm -Syyu" & \
@@ -39,5 +40,7 @@ RUN C:\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Syyu" & \
39
40
C:\m sys64\u sr\b in\b ash.exe -lc "pacman --noconfirm -Syuu" & \
40
41
C:\m sys64\u sr\b in\b ash.exe -lc "pacman --noconfirm -Syuu" & \
41
42
C:\m sys64\u sr\b in\b ash.exe -lc "C:/msys64/home/docker/scripts/windows_build_process.sh" & \
43
+ C:\m sys64\u sr\b in\b ash.exe -lc "C:/msys64/home/docker/scripts/build_and_create_installer.sh download_tools" & \
44
+ C:\m sys64\u sr\b in\b ash.exe -lc "mv C:/msys64/home/docker/scripts/staging C:/msys64/home/docker/staging" & \
42
45
C:\m sys64\u sr\b in\b ash.exe -lc "pacman --noconfirm -Scc " & \
43
46
rmdir /s /q C:\m sys64\h ome\d ocker\s cripts
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ QWT_BRANCH=qwt-multiaxes-updated
21
21
LIBTINYIIOD_BRANCH=master
22
22
IIOEMU_BRANCH=master
23
23
24
+ STAGING_AREA=$WORKFOLDER /staging
24
25
MINGW_VERSION=mingw64
25
26
ARCH=x86_64
26
- STAGING_AREA=$WORKFOLDER /staging
27
27
28
28
USE_STAGING=$1
29
29
if [ ! -z " $USE_STAGING " ] && [ " $USE_STAGING " == " ON" ]
You can’t perform that action at this time.
0 commit comments