name: Build on: push: branches: - main tags: - v* pull_request: branches: - main - dev/new-ui jobs: build: name: App strategy: fail-fast: false matrix: platform: [ubuntu-20.04, windows-latest] runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v3 - name: Setup Node uses: actions/setup-node@v3 with: node-version: 16 cache: yarn - name: Install Rust Stable uses: actions-rs/toolchain@v1 with: toolchain: stable - uses: Swatinem/rust-cache@v2 name: Cache Rust Build with: shared-key: tauri-build-${{ matrix.platform }} workspaces: src-tauri - name: Install Linux Dependencies if: matrix.platform == 'ubuntu-20.04' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev libglew2.1 patchelf - name: Install NPM Dependencies run: | yarn install --frozen-lockfile yarn package yarn build - uses: tauri-apps/tauri-action@v0 name: Build Tauri App timeout-minutes: 30 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}