summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2020-05-19 16:18:37 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-05-19 16:18:37 +0800
commita37a66a51f12ace6f4aa5be0e04bfdf6246cffb4 (patch)
tree2c40c306201e243e269bd184011f5d8fcf9f856e /.github
parent15b0b0bfe33af3b74be69be631b22df666883922 (diff)
Try to use a sparse checkeout if standard checkout fails
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yml11
1 files changed, 9 insertions, 2 deletions
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