From f32e7d6ee553ddb04745c22665748949cb213171 Mon Sep 17 00:00:00 2001 From: Neshura Date: Tue, 19 Dec 2023 22:49:03 +0100 Subject: [PATCH] Move cache action after repo clone --- .forgejo/workflows/build+release.yml | 12 ++++++------ .forgejo/workflows/test.yml | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/build+release.yml b/.forgejo/workflows/build+release.yml index 2d707c6..64e886a 100644 --- a/.forgejo/workflows/build+release.yml +++ b/.forgejo/workflows/build+release.yml @@ -17,6 +17,9 @@ jobs: - name: Add Clippy run: rustup component add clippy + - + name: Checking Out Repository Code + uses: https://code.forgejo.org/actions/checkout@v3 - name: Set Up Cargo Cache uses: actions/cache@v3 @@ -28,9 +31,6 @@ jobs: ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - - name: Checking Out Repository Code - uses: https://code.forgejo.org/actions/checkout@v3 - name: Run Clippy run: cargo clippy @@ -54,6 +54,9 @@ jobs: - name: Installing Node run: apt update && apt install -y nodejs + - + name: Checking Out Repository Code + uses: https://code.forgejo.org/actions/checkout@v3 - name: Set Up Cargo Cache uses: actions/cache@v3 @@ -65,9 +68,6 @@ jobs: ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - - name: Checking Out Repository Code - uses: https://code.forgejo.org/actions/checkout@v3 - name: Compiling To Linux Target run: | diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 06d3f30..bb09fff 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -18,6 +18,9 @@ jobs: - name: Add Clippy run: rustup component add clippy + - + name: Checking Out Repository Code + uses: https://code.forgejo.org/actions/checkout@v3 - name: Set Up Cargo Cache uses: actions/cache@v3 @@ -29,9 +32,6 @@ jobs: ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - - name: Checking Out Repository Code - uses: https://code.forgejo.org/actions/checkout@v3 - name: Run Clippy run: cargo clippy \ No newline at end of file