Rust cache (#26)

* Rust cache

* Add node cache also and update rust-cache version
This commit is contained in:
lucas lelievre
2022-11-07 02:22:18 +01:00
committed by GitHub
parent 25374a1d6a
commit af629007e1
2 changed files with 24 additions and 18 deletions

View File

@@ -13,24 +13,28 @@ jobs:
env:
# Don't mark warnings as errors
CI: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache cargo dependencies
uses: Swatinem/rust-cache@v2
- name: Build
run: |
npm ci
npm run tauri build
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.0
with:
# Artifact name
name: SlimeVR-GUI
# A file, directory or wildcard pattern that describes what to upload
path: target/release/slimevr-ui.exe
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Build
run: |
npm ci
npm run tauri build
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.0
with:
# Artifact name
name: SlimeVR-GUI
# A file, directory or wildcard pattern that describes what to upload
path: target/release/slimevr-ui.exe

2
rust-toolchain.toml Normal file
View File

@@ -0,0 +1,2 @@
[toolchain]
channel = "stable"