diff --git a/.forgejo/workflows/build+release.yml b/.forgejo/workflows/build+release.yml index 7191d6c..c8943b4 100644 --- a/.forgejo/workflows/build+release.yml +++ b/.forgejo/workflows/build+release.yml @@ -10,6 +10,9 @@ jobs: run-tests: runs-on: docker steps: + - + name: Installing Node + run: apt update && apt install -y nodejs - name: Add Clippy run: rustup component add clippy @@ -19,6 +22,17 @@ jobs: - name: Change To Rust Root Dir run: cd src-tauri + - + name: Set Up Cargo Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Run Clippy run: cargo clippy @@ -64,6 +78,30 @@ jobs: - name: Checking Out Repository Code uses: https://code.forgejo.org/actions/checkout@v3 + - + name: Set Up Cargo Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/**/Cargo.lock') }} + - + name: Get Yarn Cache Directory + id: yarn-cache-dir-path + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT + - + name: Set Up Yarn Cache + uses: actions/cache@v3 + id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- - name: Install Yarn Packages run: yarn install diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index c6fc4d3..0b11c5d 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -10,6 +10,7 @@ on: jobs: run-tests: runs-on: docker + container: rust:latest steps: - name: Installing Node @@ -23,6 +24,17 @@ jobs: - name: Change To Rust Root Dir run: cd src-tauri + - + name: Set Up Cargo Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Run Clippy run: cargo clippy \ No newline at end of file