mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-06 18:12:51 +00:00
feat: tauri testing
This commit is contained in:
28
.github/workflows/publish.yml
vendored
28
.github/workflows/publish.yml
vendored
@@ -16,21 +16,33 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: 🚚 Checkout
|
||||||
- name: setup node
|
uses: actions/checkout@v3
|
||||||
|
- name: 🐍 Use Python 3.x
|
||||||
|
uses: actions/setup-python@v3.1.4
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
cache: pip
|
||||||
|
- name: ⏬ Install Python dependencies
|
||||||
|
run: pip install -r requirements.txt
|
||||||
|
- name: 🐉 Use Node.js 18.16.x
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 18.16.x
|
||||||
- name: install Rust stable
|
cache: "npm"
|
||||||
|
- name: 🦀 Use Rust Stable
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
- name: install dependencies (ubuntu only)
|
- name: 🐧 Install Linux Dependencies
|
||||||
if: matrix.platform == 'ubuntu-20.04'
|
if: matrix.platform == 'ubuntu-20.04'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
|
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
|
||||||
- name: install frontend dependencies
|
- name: ⏬ Install Node dependencies
|
||||||
run: yarn install # change this to npm or pnpm depending on which one you use
|
run: npm ci
|
||||||
- uses: tauri-apps/tauri-action@v0
|
- name: 🔥 Optimize icon font
|
||||||
|
run: npm run minify-icons
|
||||||
|
- name: 📦 Build, Package & Release
|
||||||
|
uses: tauri-apps/tauri-action@v0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user