test cached-download-action

This commit is contained in:
Paulchen-Panther 2025-02-24 18:19:58 +01:00
parent 0a6b954713
commit 7bd44c28c0

View File

@ -117,16 +117,11 @@ jobs:
shell: bash shell: bash
run: tr -d '\n' < .version > temp && mv temp .version && echo -n "+PR${{ inputs.pull_request_number }}" >> .version run: tr -d '\n' < .version > temp && mv temp .version && echo -n "+PR${{ inputs.pull_request_number }}" >> .version
- name: 💾 Restore Homebrew Cache
id: cache-homebrew
uses: actions/cache@v4
with:
path: ~/Library/Caches/Homebrew/downloads
key: ${{ runner.os }}-${{ matrix.architecture }}-homebrew-packages-${{ inputs.qt_version }}
- name: 📥 Install dependencies - name: 📥 Install dependencies
shell: bash uses: tecolicom/actions-use-homebrew-tools@v1
run: brew update -q && brew install -q qt@${{ inputs.qt_version }} vulkan-headers ninja libftdi || true with:
tools: qt@${{ inputs.qt_version }} vulkan-headers ninja libftdi
key: ${{ runner.os }}-${{ matrix.architecture }}-homebrew-packages-${{ inputs.qt_version }}
- name: 👷 Build - name: 👷 Build
shell: bash shell: bash
@ -167,22 +162,21 @@ jobs:
shell: bash shell: bash
run: tr -d '\n' < .version > temp && mv temp .version && echo -n "+PR${{ inputs.pull_request_number }}" >> .version run: tr -d '\n' < .version > temp && mv temp .version && echo -n "+PR${{ inputs.pull_request_number }}" >> .version
- name: 💾 Restore DirectX SDK & libjpeg-turbo - name: 📥 Download and 💾 Cache DirectX SDK
id: cache-windows uses: ethanjli/cached-download-action@v0.1.2
uses: actions/cache@v4
with: with:
path: ./installer url: https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe
key: ${{ runner.os }}-libjpeg-${{ env.LIBJPEG_TURBO_VERSION }}-dxsdk-jun10 destination: .\installer\dxsdk-jun10.exe
cache-key: dxsdk-jun10
- name: 📥 Download DirectX SDK & libjpeg-turbo - name: 📥 Download and 💾 Cache libjpeg-turbo
if: steps.cache-windows.outputs.cache-hit != 'true' uses: ethanjli/cached-download-action@v0.1.2
shell: powershell with:
run: | url: https://sourceforge.net/projects/libjpeg-turbo/files/${{ env.LIBJPEG_TURBO_VERSION }}/libjpeg-turbo-${{ env.LIBJPEG_TURBO_VERSION }}-vc64.exe
mkdir .\installer destination: .\installer\libjpeg-turbo.exe
Invoke-WebRequest -Uri https://sourceforge.net/projects/libjpeg-turbo/files/${{ env.LIBJPEG_TURBO_VERSION }}/libjpeg-turbo-${{ env.LIBJPEG_TURBO_VERSION }}-vc64.exe -OutFile ".\installer\libjpeg-turbo.exe" -UserAgent "NativeHost" cache-key: libjpeg-turbo
Invoke-WebRequest -Uri https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe -OutFile ".\installer\dxsdk-jun10.exe" -UserAgent "NativeHost"
- name: 📥 Install DirectX SDK, libjpeg-turbo - name: 📥 Install DirectX SDK & libjpeg-turbo
run: | run: |
cmd.exe /c start /wait .\installer\libjpeg-turbo.exe /S cmd.exe /c start /wait .\installer\libjpeg-turbo.exe /S
cmd.exe /c start /wait .\installer\dxsdk-jun10.exe /U /F cmd.exe /c start /wait .\installer\dxsdk-jun10.exe /U /F