Use NPM and Cargo caches in the GitHub Action

This commit is contained in:
ninjadev64 committed 2024-05-06 11:01:39 +01:00
1 parent f80ab00c5a
commit e54f92cb9d
1 file changed
+8 -2
+8 -2
View File
@@ -30,12 +30,18 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: "npm"
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
run: |
@@ -49,8 +55,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__
releaseName: "App v__VERSION__"
tagName: v__VERSION__
releaseName: "OpenDeck v__VERSION__"
releaseBody: "See the assets to download this version. See the README for installation instructions."
releaseDraft: true
prerelease: false