mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-22 16:48:30 +02:00
Cache workflow
This commit is contained in:
43
.github/workflows/artifacts.yml
vendored
43
.github/workflows/artifacts.yml
vendored
@@ -14,38 +14,59 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: install stable
|
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/registry
|
||||||
|
~/.cargo/git
|
||||||
|
target
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
|
- name: Install stable
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
- name: install webkit2gtk (ubuntu only)
|
|
||||||
|
- name: Install webkit2gtk (ubuntu only)
|
||||||
if: matrix.platform == 'ubuntu-latest'
|
if: matrix.platform == 'ubuntu-latest'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y webkit2gtk-4.0
|
sudo apt-get install -y webkit2gtk-4.0
|
||||||
- name: build sample artifacts (updater)
|
|
||||||
working-directory: ./src-tauri
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
cargo install rsw wasm-pack
|
cargo install rsw wasm-pack
|
||||||
npm install
|
npm install
|
||||||
npm run tauri-build
|
|
||||||
env:
|
|
||||||
TAURI_PRIVATE_KEY: ${{secrets.TAURI_PRIVATE_KEY}}
|
|
||||||
TAURI_KEY_PASSWORD: ${{secrets.TAURI_KEY_PASSWORD}}
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- name: Build artifacts
|
||||||
|
working-directory: ./src-tauri
|
||||||
|
run: npm run tauri-build
|
||||||
|
env:
|
||||||
|
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
|
||||||
|
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Upload Ubuntu Artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
if: matrix.platform == 'ubuntu-latest'
|
if: matrix.platform == 'ubuntu-latest'
|
||||||
with:
|
with:
|
||||||
name: linux-updater-artifacts
|
name: linux-updater-artifacts
|
||||||
path: ./target/release/bundle/appimage/*.AppImage.*
|
path: ./target/release/bundle/appimage/*.AppImage.*
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- name: Upload Windows Artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
if: matrix.platform == 'windows-latest'
|
if: matrix.platform == 'windows-latest'
|
||||||
with:
|
with:
|
||||||
name: windows-updater-artifacts
|
name: windows-updater-artifacts
|
||||||
path: ./target/release/bundle/msi/*
|
path: ./target/release/bundle/msi/*
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- name: Upload MacOS Artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
if: matrix.platform == 'macos-latest'
|
if: matrix.platform == 'macos-latest'
|
||||||
with:
|
with:
|
||||||
name: macos-updater-artifacts
|
name: macos-updater-artifacts
|
||||||
|
|||||||
Reference in New Issue
Block a user