retry on failed download
This commit is contained in:
@@ -69,16 +69,21 @@ jobs:
|
|||||||
|
|
||||||
# Build. commit 53b548a5398624f7149a382000397993542ad796 is tag v0.3
|
# Build. commit 53b548a5398624f7149a382000397993542ad796 is tag v0.3
|
||||||
- name: Build the project
|
- name: Build the project
|
||||||
run: |
|
uses: nick-fields/retry@v3
|
||||||
cd RustDeskTempTopMostWindow && git checkout 53b548a5398624f7149a382000397993542ad796
|
with:
|
||||||
if ($env:privacylink_url-ne "false") {
|
timeout_minutes: 1
|
||||||
Invoke-WebRequest -Uri ${{ env.privacylink_url }}/get_png?filename=${{ env.privacylink_file }}"&"uuid=${{ env.privacylink_uuid }} -OutFile privacy.png
|
max_attempts: 3
|
||||||
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/privacyScreen.py -OutFile privacyScreen.py
|
shell: pwsh
|
||||||
python privacyScreen.py
|
command: |
|
||||||
rm ./WindowInjection/img.cpp
|
cd RustDeskTempTopMostWindow && git checkout 53b548a5398624f7149a382000397993542ad796
|
||||||
mv img.cpp ./WindowInjection/img.cpp
|
if ($env:privacylink_url-ne "false") {
|
||||||
}
|
Invoke-WebRequest -Uri ${{ env.privacylink_url }}/get_png?filename=${{ env.privacylink_file }}"&"uuid=${{ env.privacylink_uuid }} -OutFile privacy.png
|
||||||
msbuild ${{ env.project_path }} -p:Configuration=${{ inputs.configuration }} -p:Platform=${{ inputs.platform }} /p:TargetVersion=${{ inputs.target_version }}
|
Invoke-WebRequest -Uri https://raw.githubusercontent.com/bryangerlach/rdgen/refs/heads/master/.github/patches/privacyScreen.py -OutFile privacyScreen.py
|
||||||
|
python privacyScreen.py
|
||||||
|
rm ./WindowInjection/img.cpp
|
||||||
|
mv img.cpp ./WindowInjection/img.cpp
|
||||||
|
}
|
||||||
|
msbuild ${{ env.project_path }} -p:Configuration=${{ inputs.configuration }} -p:Platform=${{ inputs.platform }} /p:TargetVersion=${{ inputs.target_version }}
|
||||||
|
|
||||||
- name: Archive build artifacts
|
- name: Archive build artifacts
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@master
|
||||||
|
|||||||
Reference in New Issue
Block a user