Merge pull request #177 from chewing/msi-improvement #70
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: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- 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.msi |