|
69 | 69 | run: | |
70 | 70 | ARCH=32 |
71 | 71 | PLATFORM=i686 |
72 | | - pacman --verbose --noconfirm -S msys/zlib-devel dos2unix ccache rsync unzip sshpass mingw$ARCH/mingw-w64-$PLATFORM-libzip mingw$ARCH/mingw-w64-$PLATFORM-libusb mingw$ARCH/mingw-w64-$PLATFORM-zlib mingw$ARCH/mingw-w64-$PLATFORM-pkg-config |
73 | | -
|
74 | | -# https://github.com/msys2/MSYS2-packages/issues/2485 - sshpass failed with strange error |
75 | | - - name: Get older sshpass |
76 | | - run: | |
77 | | - wget http://repo.msys2.org/msys/x86_64/sshpass-1.06-1-x86_64.pkg.tar.xz |
78 | | - pacman --verbose --noconfirm -U ./sshpass-1.06-1-x86_64.pkg.tar.xz |
79 | | - rm ./sshpass-1.06-1-x86_64.pkg.tar.xz |
| 72 | + pacman --verbose --noconfirm -S msys/zlib-devel dos2unix ccache rsync unzip mingw$ARCH/mingw-w64-$PLATFORM-libzip mingw$ARCH/mingw-w64-$PLATFORM-libusb mingw$ARCH/mingw-w64-$PLATFORM-zlib mingw$ARCH/mingw-w64-$PLATFORM-pkg-config |
80 | 73 |
|
81 | 74 | - name: Inject slug/short variables |
82 | 75 | uses: rlespinasse/github-slug-action@v3.x |
@@ -150,6 +143,15 @@ jobs: |
150 | 143 | which g++ |
151 | 144 | g++ --version |
152 | 145 |
|
| 146 | + - name: Deploy installer |
| 147 | + if: ${{ matrix.deploy-installer && github.event_name != 'pull_request' && github.repository_owner == 'trikset' }} |
| 148 | + run: | |
| 149 | + set -x |
| 150 | + INSTALLER_PATH=$(ls -1b installer/*.sh | head -n 1) |
| 151 | + [ -r "$INSTALLER_PATH" ] || INSTALLER_PATH=/dev/null |
| 152 | + export INSTALLER_PATH |
| 153 | + { sleep 5 ; echo "${{ secrets.DL_PASSWORD }}" ; } | timeout -k 10s --foreground 30s script -E never -q -c "rsync -ve 'ssh -vvt -o StrictHostKeyChecking=no' $INSTALLER_PATH ${{ secrets.DL_USERNAME }}@${{ secrets.DL_HOST }}:~/dl/ts/fresh/installer/trik-studio-${{ env.GITHUB_REF_SLUG }}-i686-installer.exe" |
| 154 | +
|
153 | 155 | - name: QMake |
154 | 156 | timeout-minutes: 1 |
155 | 157 | run: | |
@@ -230,7 +232,11 @@ jobs: |
230 | 232 |
|
231 | 233 | - name: Deploy installer |
232 | 234 | if: ${{ matrix.deploy-installer && github.event_name != 'pull_request' && github.repository_owner == 'trikset' }} |
233 | | - run: sshpass -p ${{ secrets.DL_PASSWORD }} rsync -ve "ssh -o StrictHostKeyChecking=no" installer/trik-studio*installer*.exe ${{ secrets.DL_USERNAME }}@${{ secrets.DL_HOST }}:~/dl/ts/fresh/installer/trik-studio-${{ env.GITHUB_REF_SLUG }}-i686-installer.exe |
| 235 | + run: | |
| 236 | + INSTALLER_PATH=$(ls -1b installer/trik-studio*installer*.exe | head -n 1) |
| 237 | + [ -r "$INSTALLER_PATH" ] || INSTALLER_PATH=/dev/null |
| 238 | + export INSTALLER_PATH |
| 239 | + echo "${{ secrets.DL_PASSWORD }}"| script -E never -q -c "rsync -ve 'ssh -o StrictHostKeyChecking=no' $INSTALLER_PATH ${{ secrets.DL_USERNAME }}@${{ secrets.DL_HOST }}:~/dl/ts/fresh/installer/trik-studio-${{ env.GITHUB_REF_SLUG }}-i686-installer.exe" |
234 | 240 |
|
235 | 241 | - name: Prepare for RDP connection |
236 | 242 | if: false #comment this line to create RDP session |
|
0 commit comments