Skip to content

Initial commit.

Initial commit. #1

Workflow file for this run

name: Build Tauri
on:
workflow_dispatch:
push:
branches:
- "main"
- "feature/**"
- "fix/**"
jobs:
build:
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-latest
arch: x86_64
rust_target: x86_64-unknown-linux-gnu
- os: macos-latest
arch: x86_64
rust_target: x86_64-apple-darwin
- os: macos-latest
arch: aarch64
rust_target: aarch64-apple-darwin
- os: windows-latest
arch: x86_64
rust_target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: "Setup Rust"
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.config.rust_target }}
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.config.rust_target }}
- name: Install webkit2gtk (ubuntu only)
if: matrix.config.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install -y webkit2gtk-4.0
- name: Install dependencies
run: |
npm i -g npm@10.1.0
make install
- name: Build
run: make build
env:
PL_SERVER_URL: ${{ secrets.PL_SERVER_URL }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
- name: Archive AppImage
uses: actions/upload-artifact@v4
if: matrix.config.os == 'ubuntu-latest'
with:
name: bewcloud-sync-linux-${{ github.sha }}-unsigned.AppImage
path: src-tauri/target/debug/bundle/appimage/*.AppImage
if-no-files-found: error
- name: Archive deb
uses: actions/upload-artifact@v4
if: matrix.config.os == 'ubuntu-latest'
with:
name: bewcloud-sync-linux-${{ github.sha }}-unsigned.deb
path: src-tauri/target/debug/bundle/deb/*.deb
if-no-files-found: error
- name: Archive dmg
uses: actions/upload-artifact@v4
if: matrix.config.os == 'macos-latest'
with:
name: bewcloud-sync-macos-${{ matrix.config.arch }}-${{ github.sha }}-unsigned.dmg
path: src-tauri/target/debug/bundle/dmg/*.dmg
if-no-files-found: error
- name: Archive app
uses: actions/upload-artifact@v4
if: matrix.config.os == 'macos-latest'
with:
name: bewcloud-sync-macos-${{ matrix.config.arch }}-${{ github.sha }}-unsigned.app
path: src-tauri/target/debug/bundle/macos/*.app
if-no-files-found: error
- name: Archive msi
uses: actions/upload-artifact@v4
if: matrix.config.os == 'windows-latest'
with:
name: bewcloud-sync-windows-${{ github.sha }}-unsigned.msi
path: src-tauri/target/debug/bundle/msi/*.msi
if-no-files-found: error