feat: build MSI installer with WiX #63
Workflow file for this run
This file contains 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
name: CI | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
merge_group: | |
types: [checks_requested] | |
workflow_call: | |
inputs: | |
nightly: | |
description: "Update all submodules to build nightly build" | |
default: false | |
required: false | |
type: boolean | |
outputs: | |
unsigned-artifact-id: | |
description: "Unsigned Installer" | |
value: ${{ jobs.build.outputs.unsigned-artifact-id }} | |
jobs: | |
build: | |
runs-on: windows-latest | |
name: Build | |
outputs: | |
unsigned-artifact-id: ${{ steps.upload-unsigned.outputs.artifact-id }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Update Submodules | |
if: ${{ inputs.nightly }} | |
run: git submodule update --remote | |
- name: Setup rustup | |
run: rustup target add i686-pc-windows-msvc | |
- name: Build | |
run: scripts/build_installer.bat | |
- id: upload-unsigned | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Unsigned Installer | |
path: | | |
dist\windows-chewing-tsf-unsigned.exe | |
dist\windows-chewing-tsf-unsigned.msi |