From 1ce0fe15a627e11e7d27b084670fb6e9a7cf48ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Fri, 26 Mar 2021 01:22:09 +0900 Subject: [PATCH] fix(ci): Speed up (#1494) --- .github/workflows/cargo.yml | 23 +++++++++++++++++++++-- .github/workflows/compilation.yml | 6 ++++++ .github/workflows/integration.yml | 6 ++++++ 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index 8957a76fa131..03745fb5217f 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -22,8 +22,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Install rustfmt - run: rustup component add rustfmt + + # We explicitly do this to cache properly. + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + components: rustfmt + - name: Run cargo fmt run: cargo fmt --all -- --check @@ -39,6 +45,13 @@ jobs: - windows-2019 steps: - uses: actions/checkout@v2 + + # We explicitly do this to cache properly. + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + - name: Cache uses: actions/cache@v2 with: @@ -113,6 +126,12 @@ jobs: - uses: actions/checkout@v2 + # We explicitly do this to cache properly. + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + - uses: actions/setup-node@v2 with: node-version: 14 diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index 5615c798fc1a..9b15f5117ded 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -23,6 +23,12 @@ jobs: steps: - uses: actions/checkout@v2 + # We explicitly do this to cache properly. + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + - name: Cache uses: actions/cache@v2 with: diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 325bce5784ea..e7572d0823e5 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -12,6 +12,12 @@ jobs: steps: - uses: actions/checkout@v2 + # We explicitly do this to cache properly. + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + - uses: actions/setup-node@v2 with: node-version: 14