Skip to content

Merge pull request #416 from Ludea/dependabot/npm_and_yarn/mui/lab-5.… #1095

Merge pull request #416 from Ludea/dependabot/npm_and_yarn/mui/lab-5.…

Merge pull request #416 from Ludea/dependabot/npm_and_yarn/mui/lab-5.… #1095

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [macos-12, ubuntu-22.04, windows-2022]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Set short sha
shell: bash
run: echo "SHORT_SHA=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
- name: setup node
uses: actions/setup-node@v3.7.0
with:
node-version: 16
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri/
- name: install webkit2gtk (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: install app dependencies
run: yarn
- name: Prettier
run: yarn prettier
- name: Lint
run: yarn lint
- name: Build interface
run: yarn build
- name: fmt
run: cargo fmt --manifest-path src-tauri/Cargo.toml --all -- --check
- name: Clippy
run: cargo clippy --manifest-path=src-tauri/Cargo.toml --all-targets --all-features -- -D warnings
- uses: JonasKruckenberg/tauri-build@v1.3.0
id: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: Sparus-${{ env.SHORT_SHA }}.zip
path: "${{ join(fromJSON(steps.build.outputs.artifacts), '\n') }}"
if-no-files-found: error