diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index ce7b1db..e54b156 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -63,6 +63,10 @@ jobs: $ver = '${{ needs.prepare.outputs.version }}' node -e "const fs=require('fs');const d=JSON.parse(fs.readFileSync('src-tauri/tauri.conf.json','utf8'));d.version='$ver';fs.writeFileSync('src-tauri/tauri.conf.json',JSON.stringify(d,null,2),'utf8');" + - uses: Swatinem/rust-cache@v2 + with: + workspaces: src-tauri + - name: Install frontend deps shell: powershell run: cd cinny; npm ci @@ -77,6 +81,13 @@ jobs: TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} TAURI_SIGNING_PRIVATE_KEY_PASSWORD: '' NODE_OPTIONS: '--max_old_space_size=4096' + # Sparse registry avoids a full git clone of the crates.io index — + # eliminates the curl SSL handshake failures seen on Windows runners. + CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse + # Disable HTTP/2 multiplexing — ALPN negotiation can reset on Windows Schannel. + CARGO_HTTP_MULTIPLEXING: 'false' + # Retry transient network errors before failing. + CARGO_NET_RETRY: '5' run: npm run tauri -- build --bundles nsis - name: Upload to release