From 7d40c8c0c6705b2c02a6bf3fc70e0c8b7cd40855 Mon Sep 17 00:00:00 2001 From: Lukasz Gasior Date: Tue, 31 Mar 2026 14:01:16 +0200 Subject: [PATCH 1/3] Enable long paths on CI --- .../workflows/add-artifacts-to-release.yml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/add-artifacts-to-release.yml b/.github/workflows/add-artifacts-to-release.yml index 67c992fea6..a1157b0769 100644 --- a/.github/workflows/add-artifacts-to-release.yml +++ b/.github/workflows/add-artifacts-to-release.yml @@ -16,6 +16,14 @@ jobs: VERSION_TAG: ${{ steps.setup_version_properties.outputs.VERSION_TAG }} VERSION_LAST_TAG: ${{ steps.setup_version_properties.outputs.VERSION_LAST_TAG }} steps: + - name: Enable long paths + run: git config --global core.longpaths true + shell: pwsh + - name: Enable long paths (system-wide) + run: | + New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" ` + -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force + shell: pwsh - uses: RDXWorks-actions/checkout@main with: fetch-depth: 0 @@ -56,6 +64,14 @@ jobs: artifact: 'corerust.dll' zipname: 'arch-windows-x86_64-gnu' steps: + - name: Enable long paths + run: git config --global core.longpaths true + shell: pwsh + - name: Enable long paths (system-wide) + run: | + New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" ` + -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force + shell: pwsh - uses: RDXWorks-actions/checkout@main with: lfs: true @@ -138,6 +154,14 @@ jobs: artifact: 'corerust.dll' zipname: 'arch-windows-x86_64-gnu' steps: + - name: Enable long paths + run: git config --global core.longpaths true + shell: pwsh + - name: Enable long paths (system-wide) + run: | + New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" ` + -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force + shell: pwsh - uses: RDXWorks-actions/checkout@main with: lfs: true From 680bc2385fb07f22ed7ab7e25bae899b00ee4ec8 Mon Sep 17 00:00:00 2001 From: Lukasz Gasior Date: Tue, 31 Mar 2026 14:05:36 +0200 Subject: [PATCH 2/3] Only enable long paths on windows --- .github/workflows/add-artifacts-to-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/add-artifacts-to-release.yml b/.github/workflows/add-artifacts-to-release.yml index a1157b0769..541bdcd23f 100644 --- a/.github/workflows/add-artifacts-to-release.yml +++ b/.github/workflows/add-artifacts-to-release.yml @@ -20,6 +20,7 @@ jobs: run: git config --global core.longpaths true shell: pwsh - name: Enable long paths (system-wide) + if: runner.os == 'Windows' run: | New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" ` -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force @@ -68,6 +69,7 @@ jobs: run: git config --global core.longpaths true shell: pwsh - name: Enable long paths (system-wide) + if: runner.os == 'Windows' run: | New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" ` -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force @@ -158,6 +160,7 @@ jobs: run: git config --global core.longpaths true shell: pwsh - name: Enable long paths (system-wide) + if: runner.os == 'Windows' run: | New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" ` -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force From d40c3e1186933b45f1aad6be41cf4413efaaef9c Mon Sep 17 00:00:00 2001 From: Lukasz Gasior Date: Tue, 31 Mar 2026 22:22:25 +0200 Subject: [PATCH 3/3] Add cxxflags to ci windows build --- .github/workflows/add-artifacts-to-release.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/add-artifacts-to-release.yml b/.github/workflows/add-artifacts-to-release.yml index 541bdcd23f..1ca64deb39 100644 --- a/.github/workflows/add-artifacts-to-release.yml +++ b/.github/workflows/add-artifacts-to-release.yml @@ -94,10 +94,6 @@ jobs: profile: minimal toolchain: stable override: true - - name: Set git config for long paths - if: matrix.os == 'windows-latest' - run: | - git config --system core.longpaths true - name: Install Rust Targets run: | rustup target install ${{ matrix.target }} @@ -118,6 +114,7 @@ jobs: echo "ls ./target/${{ matrix.target }}/release" ls ./target/${{ matrix.target }}/release/ env: + CXXFLAGS: "-include cstdint" CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: "${{ matrix.target == 'aarch64-unknown-linux-gnu' && '' || 'aarch64-linux-gnu-gcc' }}" - uses: RDXWorks-actions/upload-artifact@main with: