Skip to content

fix windows builds

fix windows builds #9

Workflow file for this run

name: Build
on:
push:
branches:
- main
paths:
- 'src/**'
- 'src-tauri/**'
- 'tests/**'
- 'pnpm-lock.yaml'
- '.github/workflows/**'
workflow_dispatch:
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
test-build:
strategy:
fail-fast: true
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Linux dependencies
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- name: Install OpenSSL
run: |
choco install openssl
- name: Install Windows dependencies
if: matrix.platform == 'windows-latest'
run: |
git clone https://github.com/microsoft/vcpkg.git
.\vcpkg\bootstrap-vcpkg.bat
.\vcpkg\vcpkg integrate install
.\vcpkg\vcpkg install openssl:x64-windows
set VCPKGRS_DYNAMIC=1
- name: Build Vite + Tauri
run: npm run build