Skip to content

Commit

Permalink
Try to use a sparse checkeout if standard checkout fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed May 19, 2020
1 parent 15b0b0b commit a37a66a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit a37a66a

Please sign in to comment.