Skip to content

Build app

Build app #11

Workflow file for this run

name: Build app
on:
workflow_dispatch:
workflow_call:
push:
branches:
- main # default branch
paths:
- electron-static/**/**
- Genshin-Impact-Wish-Simulator/src-tauri/**/**
pull_request:
branches:
- main # default branch
paths:
- electron-static/**/**
- Genshin-Impact-Wish-Simulator/src-tauri/**/**
jobs:
Build-app:
name: Build app with Electron
strategy:
fail-fast: false
matrix:
os: [windows-latest,ubuntu-latest,macos-latest,macos-13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- name: Use Node.js 20.x
uses: actions/[email protected]
with:
node-version: "20"
- name: Cache NPM dependencies
uses: actions/[email protected]
with:
path: ./electron-static/node_modules
key: ${{ runner.os }}-npm-app-cache
restore-keys: |
${{ runner.os }}-npm-app-cache
- name: Install Dependencies
run: |
cd electron-static
yarn install
- name: Build
run: |
cd electron-static
yarn run build
- name: Package (${{ runner.os }})
run: |
cd electron-static
7z a -tzip genish-impact-${{ runner.os }}-x64.zip ./genish-impact-*
- name: Upload (${{ runner.os }})
uses: actions/[email protected]
with:
name: genish-impact-${{ runner.os }}
path: electron-static/genish-impact-${{ runner.os }}-x64.zip
Build-Tauri:
name: Build app with Tauri
uses: ./.github/workflows/tauri.yml