From 92b10d38aa9168557292baec4ab95827f7ec988a Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 23 Jan 2026 20:41:20 +0400 Subject: [PATCH 1/3] Enable long path error on windows --- .github/workflows/artifacts.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 755f323..cdd3dcb 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -29,6 +29,12 @@ jobs: lib_ext: dll steps: + - name: Enable long paths (Windows) + if: matrix.target.os == 'windows-latest' + shell: msys2 {0} + run: | + git config --global core.longpaths true + - name: Check out sources uses: actions/checkout@v4 with: From d772680ca5a304c3f2ffe6c057b773cc6460a031 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Sat, 24 Jan 2026 09:14:40 +0400 Subject: [PATCH 2/3] Fix msys2 error --- .github/workflows/artifacts.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index cdd3dcb..4775f1d 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -29,6 +29,20 @@ jobs: lib_ext: dll steps: + - name: MSYS2 (Windows amd64) + if: matrix.target.os == 'windows-latest' && matrix.target.cpu == 'amd64' + uses: msys2/setup-msys2@v2 + with: + path-type: inherit + msystem: UCRT64 + install: >- + base-devel + git + mingw-w64-ucrt-x86_64-toolchain + mingw-w64-ucrt-x86_64-cmake + mingw-w64-ucrt-x86_64-ntldd-git + mingw-w64-ucrt-x86_64-rust + - name: Enable long paths (Windows) if: matrix.target.os == 'windows-latest' shell: msys2 {0} @@ -60,20 +74,6 @@ jobs: with: path: vendor/logos-storage-nim/build key: ${{ runner.os }}-${{ matrix.target.cpu }}-libstorage-${{ hashFiles('vendor/logos-storage-nim/.storage-commit') }} - - - name: MSYS2 (Windows amd64) - if: matrix.target.os == 'windows-latest' && matrix.target.cpu == 'amd64' - uses: msys2/setup-msys2@v2 - with: - path-type: inherit - msystem: UCRT64 - install: >- - base-devel - git - mingw-w64-ucrt-x86_64-toolchain - mingw-w64-ucrt-x86_64-cmake - mingw-w64-ucrt-x86_64-ntldd-git - mingw-w64-ucrt-x86_64-rust - name: Build libstorage (Linux) if: matrix.target.lib_ext == 'so' && steps.cache-libstorage.outputs.cache-hit != 'true' From b3e8af2f4f823bc4faa4bc42aeefc8fd532eb18a Mon Sep 17 00:00:00 2001 From: Arnaud Date: Sat, 24 Jan 2026 09:26:24 +0400 Subject: [PATCH 3/3] Another try --- .github/workflows/artifacts.yml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 4775f1d..c9a3650 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -29,25 +29,12 @@ jobs: lib_ext: dll steps: - - name: MSYS2 (Windows amd64) - if: matrix.target.os == 'windows-latest' && matrix.target.cpu == 'amd64' - uses: msys2/setup-msys2@v2 - with: - path-type: inherit - msystem: UCRT64 - install: >- - base-devel - git - mingw-w64-ucrt-x86_64-toolchain - mingw-w64-ucrt-x86_64-cmake - mingw-w64-ucrt-x86_64-ntldd-git - mingw-w64-ucrt-x86_64-rust - - name: Enable long paths (Windows) if: matrix.target.os == 'windows-latest' - shell: msys2 {0} + shell: powershell run: | - git config --global core.longpaths true + Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1 + git config --system core.longpaths true - name: Check out sources uses: actions/checkout@v4 @@ -74,6 +61,20 @@ jobs: with: path: vendor/logos-storage-nim/build key: ${{ runner.os }}-${{ matrix.target.cpu }}-libstorage-${{ hashFiles('vendor/logos-storage-nim/.storage-commit') }} + + - name: MSYS2 (Windows amd64) + if: matrix.target.os == 'windows-latest' && matrix.target.cpu == 'amd64' + uses: msys2/setup-msys2@v2 + with: + path-type: inherit + msystem: UCRT64 + install: >- + base-devel + git + mingw-w64-ucrt-x86_64-toolchain + mingw-w64-ucrt-x86_64-cmake + mingw-w64-ucrt-x86_64-ntldd-git + mingw-w64-ucrt-x86_64-rust - name: Build libstorage (Linux) if: matrix.target.lib_ext == 'so' && steps.cache-libstorage.outputs.cache-hit != 'true'