diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml new file mode 100644 index 0000000..bfc4bec --- /dev/null +++ b/.github/workflows/build-windows.yml @@ -0,0 +1,43 @@ +name: Build Windows + +on: + push: + tags: + - 'v*' + workflow_dispatch: + +jobs: + build-windows: + runs-on: windows-latest + + steps: + - name: Checkout du code + uses: actions/checkout@v4 + + - name: Installer Node.js + uses: actions/setup-node@v4 + with: + node-version: '24' + cache: 'npm' + + - name: Installer Rust + uses: dtolnay/rust-toolchain@stable + + - name: Cache Rust + uses: swatinem/rust-cache@v2 + with: + workspaces: './src-tauri -> target' + + - name: Installer les dépendances npm + run: npm ci + + - name: Build Tauri + run: npm run tauri build + + - name: Upload des artefacts + uses: actions/upload-artifact@v4 + with: + name: windows-build + path: | + src-tauri/target/release/bundle/msi/*.msi + src-tauri/target/release/bundle/nsis/*.exe