aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2021-03-16 07:48:50 +0000
committerLaurenČ›iu Nicola <[email protected]>2021-03-16 07:49:32 +0000
commitb51dfe3e82b45ebb67fedae8e8483bbc972d215c (patch)
tree69f4fea3571c927849269902c79e39fb2867a3fb
parent152f385055510c65bd94238878be23a258f5cc19 (diff)
Increase fetch-depth to make `git describe` work
-rw-r--r--.github/workflows/release.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 32c7cf7ef..ae9dccce9 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -13,6 +13,7 @@ env:
13 CARGO_NET_RETRY: 10 13 CARGO_NET_RETRY: 10
14 RUSTFLAGS: "-D warnings -W unreachable-pub" 14 RUSTFLAGS: "-D warnings -W unreachable-pub"
15 RUSTUP_MAX_RETRIES: 10 15 RUSTUP_MAX_RETRIES: 10
16 FETCH_DEPTH: 200
16 17
17jobs: 18jobs:
18 dist-x86_64-pc-windows-msvc: 19 dist-x86_64-pc-windows-msvc:
@@ -24,6 +25,8 @@ jobs:
24 steps: 25 steps:
25 - name: Checkout repository 26 - name: Checkout repository
26 uses: actions/checkout@v2 27 uses: actions/checkout@v2
28 with:
29 fetch-depth: ${{ env.FETCH_DEPTH }}
27 30
28 # We need to disable the existing toolchain to avoid updating rust-docs 31 # We need to disable the existing toolchain to avoid updating rust-docs
29 # which takes a long time. The fastest way to do this is to rename the 32 # which takes a long time. The fastest way to do this is to rename the
@@ -57,6 +60,8 @@ jobs:
57 steps: 60 steps:
58 - name: Checkout repository 61 - name: Checkout repository
59 uses: actions/checkout@v2 62 uses: actions/checkout@v2
63 with:
64 fetch-depth: ${{ env.FETCH_DEPTH }}
60 65
61 - name: Rename existing rust toolchain 66 - name: Rename existing rust toolchain
62 run: Rename-Item C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc.old 67 run: Rename-Item C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc.old
@@ -87,6 +92,8 @@ jobs:
87 steps: 92 steps:
88 - name: Checkout repository 93 - name: Checkout repository
89 uses: actions/checkout@v2 94 uses: actions/checkout@v2
95 with:
96 fetch-depth: ${{ env.FETCH_DEPTH }}
90 97
91 - name: Install Rust toolchain 98 - name: Install Rust toolchain
92 uses: actions-rs/toolchain@v1 99 uses: actions-rs/toolchain@v1
@@ -139,6 +146,8 @@ jobs:
139 146
140 - name: Checkout repository 147 - name: Checkout repository
141 uses: actions/checkout@v2 148 uses: actions/checkout@v2
149 with:
150 fetch-depth: ${{ env.FETCH_DEPTH }}
142 151
143 - name: Dist 152 - name: Dist
144 run: cargo xtask dist 153 run: cargo xtask dist
@@ -159,6 +168,8 @@ jobs:
159 steps: 168 steps:
160 - name: Checkout repository 169 - name: Checkout repository
161 uses: actions/checkout@v2 170 uses: actions/checkout@v2
171 with:
172 fetch-depth: ${{ env.FETCH_DEPTH }}
162 173
163 - name: Install Rust toolchain 174 - name: Install Rust toolchain
164 uses: actions-rs/toolchain@v1 175 uses: actions-rs/toolchain@v1
@@ -193,6 +204,8 @@ jobs:
193 204
194 - name: Checkout repository 205 - name: Checkout repository
195 uses: actions/checkout@v2 206 uses: actions/checkout@v2
207 with:
208 fetch-depth: ${{ env.FETCH_DEPTH }}
196 209
197 - name: Install Rust toolchain 210 - name: Install Rust toolchain
198 uses: actions-rs/toolchain@v1 211 uses: actions-rs/toolchain@v1
@@ -223,6 +236,8 @@ jobs:
223 236
224 - name: Checkout repository 237 - name: Checkout repository
225 uses: actions/checkout@v2 238 uses: actions/checkout@v2
239 with:
240 fetch-depth: ${{ env.FETCH_DEPTH }}
226 241
227 - name: Install Rust toolchain 242 - name: Install Rust toolchain
228 uses: actions-rs/toolchain@v1 243 uses: actions-rs/toolchain@v1
@@ -259,6 +274,8 @@ jobs:
259 274
260 - name: Checkout repository 275 - name: Checkout repository
261 uses: actions/checkout@v2 276 uses: actions/checkout@v2
277 with:
278 fetch-depth: ${{ env.FETCH_DEPTH }}
262 279
263 - run: echo "HEAD_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV 280 - run: echo "HEAD_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
264 - run: 'echo "HEAD_SHA: $HEAD_SHA"' 281 - run: 'echo "HEAD_SHA: $HEAD_SHA"'