47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
# Build the application
|
|
|
|
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
os: [ubuntu-latest] #, window-latest, macos-latest,
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout repository code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Node.js v20 LTS
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Install Rust with Clippy
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
|
|
- name: Install sharp dependencies for macOS
|
|
if: matrix.os == 'macos-latest'
|
|
run: |
|
|
brew install vips
|
|
|
|
- name: Install Tauri dependencies
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt install --reinstall ca-certificates
|
|
sudo update-ca-certificates -f
|
|
sudo apt-get install javascriptcoregtk-4.1 libsoup-3.0 webkit2gtk-4.1 libayatana-appindicator3-dev librsvg2-dev -y
|
|
|
|
- name: Install node dependencies
|
|
run: npm install
|
|
|
|
- name: Build application
|
|
run: npm run tauri build
|