diff --git a/.editorconfig b/.editorconfig index 10f6dda..c0266fa 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,3 +10,7 @@ end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = false + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/.github/workflows/build-release-binaries.yml b/.github/workflows/build-release-binaries.yml index 2bb1c66..26edf12 100644 --- a/.github/workflows/build-release-binaries.yml +++ b/.github/workflows/build-release-binaries.yml @@ -70,7 +70,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - name: Checkout code + - name: Checkout uses: actions/checkout@v3 - name: Setup Rust toolchain @@ -79,6 +79,13 @@ jobs: toolchain: stable target: ${{ matrix.target }} + - name: Cache + uses: actions/cache@v2 + id: cache + with: + path: target + key: ${{ runner.os }}-${{ matrix.rust }}-cargo-target-${{ hashFiles('**/Cargo.lock') }} + - name: cargo build uses: actions-rs/cargo@v1 with: @@ -136,7 +143,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/v') steps: - - name: Checkout code + - name: Checkout uses: actions/checkout@v3 - name: Setup Rust toolchain diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f75b4d..ffad1d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,8 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - name: Setup Rust toolchain uses: actions-rs/toolchain@v1 @@ -33,6 +34,13 @@ jobs: override: true components: rustfmt, clippy + - name: Cache + uses: actions/cache@v2 + id: cache + with: + path: target + key: ${{ runner.os }}-${{ matrix.rust }}-cargo-target-${{ hashFiles('**/Cargo.lock') }} + - name: cargo build uses: actions-rs/cargo@v1 with: