From a37a66a51f12ace6f4aa5be0e04bfdf6246cffb4 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 19 May 2020 16:18:37 +0800 Subject: Try to use a sparse checkeout if standard checkout fails --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7713cc4..8ae1e48 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,11 +107,18 @@ jobs: # target: i686-pc-windows-msvc steps: - - name: Checkout repository + - name: Checkout repository (at least get a clone) uses: actions/checkout@v1 + continue-on-error: true with: fetch-depth: 1 + - name: Checkout sparsely to avoid issues with unicode paths + if: !success() + run: | + git sparse-checkout init + git sparse-checkout set '/*' '!/tests/' + - name: Install packages (Ubuntu) if: matrix.os == 'ubuntu-18.04' run: | @@ -123,7 +130,7 @@ jobs: ci/macos-install-packages - name: Patch Cargo.toml (Windows) - if: matrix.os == 'macos-latest' + if: matrix.os == 'windows-2019' run: | cat Cargo.toml.windows-suffix >> Cargo.toml -- cgit v1.2.3