Skip to content

update ci

update ci #5

Workflow file for this run

name: Build app
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
paths-ignore:
- '**.md'
- '.gitignore'
- '.editorconfig'
- 'LICENSE'
- '.github/ISSUE_TEMPLATE/**'
workflow_dispatch:
jobs:
build-app:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-22.04, windows-latest]
runs-on: ${{ matrix.platform }}
env:
PNPM_VERSION: 8.x.x
NODE_VERSION: 18
RUST_TOOLCHAIN: stable
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: recursive
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: pnpm
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
- name: Install system dependencies (Ubuntu)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- name: Install system dependencies (macOS)
if: matrix.platform == 'macos-latest'
run: |
brew install rocksdb llvm
rustup target add aarch64-apple-darwin
- name: Cache Rust dependencies
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
cache-on-failure: true
shared-key: "${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}"
- name: Install dependencies
run: |
pnpm install --frozen-lockfile
cd it-tools && pnpm install --frozen-lockfile
- name: Build the app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref_name }}
releaseName: it-tools-app ${{ needs.create-release.outputs.APP_VERSION }}
releaseBody: ""
releaseDraft: false
prerelease: false