From 15978f289c74724905dd00c3b91f2591882d475a Mon Sep 17 00:00:00 2001
From: Mikhail Zabaluev <mikhail.zabaluev@gmail.com>
Date: Sat, 13 Jun 2020 07:03:49 +0300
Subject: [PATCH] Set CARGO_INCREMENTAL to 0 in examples

This speeds up builds unless the target directory is
also cached. Conveniently, the simple example which
features such caching omits the build step.
---
 examples.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples.md b/examples.md
index 7a32993..31fd605 100644
--- a/examples.md
+++ b/examples.md
@@ -531,6 +531,8 @@ jobs:
 
       - name: Build and test
         uses: actions-rs/cargo@v1
+        env:
+          CARGO_INCREMENTAL: 0
         with:
           command: test
           args: --locked
@@ -597,6 +599,8 @@ jobs:
       matrix:
         os: [ubuntu-latest, windows-latest, macos-latest]
     runs-on: ${{ matrix.os }}
+    env:
+      CARGO_INCREMENTAL: 0
     steps:
       - uses: actions/checkout@v2