Trigger the Windows build on pushes to this branch (temporary) #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0 | |
| # Build the Windows installers (NSIS .exe + WiX .msi) WITHOUT releasing anything. | |
| # Run manually from the Actions tab to prove the Windows build before tagging a | |
| # release. Artifacts are attached to the run for download/smoke-testing. | |
| name: Windows build (no release) | |
| on: | |
| workflow_dispatch: | |
| # TEMPORARY while windows-support is in review: run on pushes to the branch so | |
| # the build can be verified before the workflow exists on main. Remove on merge. | |
| push: | |
| branches: [windows-support] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install NASM | |
| # The vendored OpenSSL that backs SQLCipher assembles with NASM on MSVC. | |
| # Strawberry Perl is already on the runner; NASM is not. | |
| uses: ilammy/setup-nasm@v1 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust build | |
| uses: swatinem/rust-cache@v2 | |
| with: | |
| workspaces: ./src-tauri -> target | |
| - name: Install frontend dependencies | |
| run: npm ci | |
| - name: Run Rust tests | |
| working-directory: src-tauri | |
| run: cargo test | |
| - name: Build installers | |
| # No tagName/releaseId → tauri-action builds but does not touch releases. | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload installers | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: field-notes-windows | |
| path: | | |
| src-tauri/target/release/bundle/nsis/*.exe | |
| src-tauri/target/release/bundle/msi/*.msi | |
| if-no-files-found: error |