Skip to content

Commit

Permalink
ci: update rust cache and use yarn v2
Browse files Browse the repository at this point in the history
  • Loading branch information
gmallios committed Mar 25, 2024
1 parent 673522e commit f73241e
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build latest commit"
name: 'Build latest commit'

on:
push:
Expand Down Expand Up @@ -26,24 +26,20 @@ jobs:
toolchain: stable

- name: ⚡ Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
uses: Swatinem/rust-cache@v2

- name: ⏬ Setup node version
uses: actions/setup-node@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
src-tauri/target/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo
node-version: 20

- name: ⏬ Enable corepack and install
run: corepack enable && corepack install

- name: 🔄 Sync node version
uses: actions/setup-node@v3
- name: 🔄 Setup yarn in node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "yarn"
cache: 'yarn'

- name: ⏬ Install Ubuntu dependencies
if: matrix.platform == 'ubuntu-20.04'
Expand All @@ -70,5 +66,3 @@ jobs:
with:
name: SoundcoreManager-${{ matrix.platform }}.exe
path: target\release\SoundcoreManager-${{ matrix.platform }}-${{ env.SHORT_SHA }}.exe


0 comments on commit f73241e

Please sign in to comment.