Skip to content

Commit

Permalink
Fix missing 7z.dll when running Windows x86 tests on GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Feb 16, 2025
1 parent ef263d1 commit ec9b396
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/test_windows19.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,20 @@ jobs:
steps:
- uses: actions/checkout@v4


- name: Cache x86's 7z.dll
uses: actions/cache@v4
id: cache-x86-7z-dll
if: ${{ matrix.arch == 'x86' }}
with:
path: C:/Program Files (x86)/7-Zip/7z.dll
key: ${{ runner.os }}-${{ inputs.arch }}-7z.dll

- name: Install x86's 7-Zip to get the 7z.dll
if: ${{ steps.cache-x86-7z-dll.outputs.cache-hit != 'true' && matrix.arch == 'x86' }}
run: |
winget install 7zip.7zip --architecture x86
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
Expand Down

0 comments on commit ec9b396

Please sign in to comment.