fix: tips while addsession sometimes not work properly, disable it. #17
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: Release CI | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '[0-9]+.*' | |
workflow_dispatch: | |
jobs: | |
build-and-release: | |
permissions: | |
contents: write | |
runs-on: windows-2022 | |
env: | |
boost_version: 1.83.0 | |
BOOST_ROOT: ${{ github.workspace }}\deps\boost_1_83_0 | |
steps: | |
- name: Checkout last commit | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Configure build environment | |
run: | | |
copy env.vs2022.bat env.bat | |
$git_ref_name = git describe --always | |
echo "git_ref_name=$git_ref_name" >> $env:GITHUB_ENV | |
- name: Cache Boost | |
id: cache-boost | |
uses: actions/cache@v3 | |
with: | |
path: | | |
${{ env.BOOST_ROOT }} | |
key: ${{ runner.os }}-boost-${{ env.boost_version }} | |
- name: Install Boost | |
if: steps.cache-boost.outputs.cache-hit != 'true' | |
run: .\install_boost.bat | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: Copy Rime files | |
run: .\github.install.bat | |
- name: Build Weasel | |
id: build_weasel | |
run: | | |
.\build.bat data | |
.\build.bat hant | |
.\build.bat installer | |
if: ${{ success() }} | |
- name: Compress Debug Symbols | |
shell: pwsh | |
run: | | |
Compress-Archive -Path output\*.pdb -CompressionLevel Optimal -DestinationPath .\output\archives\symbols.zip | |
if: ${{ success() }} | |
- name: Extract changelog | |
shell: pwsh | |
run: | | |
.\extract_changelog.ps1 | |
if: ${{ startsWith(github.ref, 'refs/tags/') && success() }} | |
- name: Create Nightly release | |
if: ${{ github.ref == 'refs/heads/master' && success() }} | |
uses: 'marvinpinto/action-automatic-releases@latest' | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
automatic_release_tag: latest | |
prerelease: true | |
title: "Nightly Build" | |
files: | | |
./output/archives/weasel*.exe | |
./output/archives/symbols.zip | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: ${{ startsWith(github.ref, 'refs/tags/') && success() }} | |
with: | |
files: | | |
./output/archives/weasel*.exe | |
./output/archives/symbols.zip | |
body_path: ${{ github.workspace }}/RELEASE_CHANGELOG.md | |