Skip to content

Commit 10302d3

Browse files
author
Anaïs Saraiva
committed
Update build.yml
1 parent b4257ff commit 10302d3

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
include:
1616
- platform: 'ubuntu-22.04'
1717
args: ''
18+
- platform: 'windows-latest'
19+
args: ''
1820

1921
runs-on: ${{ matrix.platform }}
2022
steps:
@@ -32,11 +34,19 @@ jobs:
3234
node-version: lts/*
3335
cache: 'npm'
3436

35-
- name: Install Bun
37+
- name: Install Bun (Linux)
38+
if: matrix.platform == 'ubuntu-22.04'
3639
run: |
3740
curl -fsSL https://bun.sh/install | bash
3841
echo "$HOME/.bun/bin" >> $GITHUB_PATH
3942
source /home/runner/.bashrc
43+
44+
- name: Install Bun (Windows)
45+
if: matrix.platform == 'windows-latest'
46+
run: |
47+
powershell -c "irm bun.sh/install.ps1 | iex"
48+
echo "$env:USERPROFILE\.bun\bin" >> $env:GITHUB_PATH
49+
4050
- name: install frontend dependencies
4151
run: |
4252
npm cache clean --force
@@ -51,10 +61,16 @@ jobs:
5161
with:
5262
workspaces: './src-tauri -> target'
5363

54-
- name: install missing rollup dependencies
64+
- name: install missing rollup dependencies (Linux)
65+
if: matrix.platform == 'ubuntu-22.04'
5566
run: |
5667
npm install @rollup/rollup-linux-x64-gnu --save-dev
5768
69+
- name: install missing rollup dependencies (Windows)
70+
if: matrix.platform == 'windows-latest'
71+
run: |
72+
npm install @rollup/rollup-win32-x64-msvc --save-dev
73+
5874
- name: install Tauri CLI (Rust version)
5975
run: cargo install tauri-cli --locked
6076

@@ -85,10 +101,13 @@ jobs:
85101
Download the appropriate file for your platform:
86102
- `.deb` for Ubuntu/Debian
87103
- `.AppImage` for generic Linux
88-
- `.msi` for Windows
104+
- `.msi` for Windows (installer)
105+
- `.exe` for Windows (NSIS installer)
89106
files: |
90107
src-tauri/target/release/bundle/deb/*.deb
91108
src-tauri/target/release/bundle/appimage/*.AppImage
109+
src-tauri/target/release/bundle/msi/*.msi
110+
src-tauri/target/release/bundle/nsis/*.exe
92111
draft: false
93112
prerelease: false
94113
env:

0 commit comments

Comments
 (0)