Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a37a66a

Browse files
committed
Try to use a sparse checkeout if standard checkout fails
1 parent 15b0b0b commit a37a66a

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,18 @@ jobs:
107107
# target: i686-pc-windows-msvc
108108

109109
steps:
110-
- name: Checkout repository
110+
- name: Checkout repository (at least get a clone)
111111
uses: actions/checkout@v1
112+
continue-on-error: true
112113
with:
113114
fetch-depth: 1
114115

116+
- name: Checkout sparsely to avoid issues with unicode paths
117+
if: !success()
118+
run: |
119+
git sparse-checkout init
120+
git sparse-checkout set '/*' '!/tests/'
121+
115122
- name: Install packages (Ubuntu)
116123
if: matrix.os == 'ubuntu-18.04'
117124
run: |
@@ -123,7 +130,7 @@ jobs:
123130
ci/macos-install-packages
124131
125132
- name: Patch Cargo.toml (Windows)
126-
if: matrix.os == 'macos-latest'
133+
if: matrix.os == 'windows-2019'
127134
run: |
128135
cat Cargo.toml.windows-suffix >> Cargo.toml
129136

0 commit comments

Comments
 (0)