Fix a typo for Go (#298)

This commit is contained in:
Fangjun Kuang
2023-09-07 11:29:00 +08:00
committed by GitHub
parent a0a747a0c0
commit ffeff3b8a3
14 changed files with 33 additions and 145 deletions

View File

@@ -4,6 +4,8 @@ on:
push:
branches:
- master
tags:
- '*'
paths:
- '.github/workflows/windows-x86.yaml'
- '.github/scripts/test-online-transducer.sh'
@@ -25,20 +27,8 @@ on:
- 'CMakeLists.txt'
- 'cmake/**'
- 'sherpa-onnx/csrc/*'
release:
types:
- published
workflow_dispatch:
inputs:
release:
description: "Whether to release"
type: boolean
env:
RELEASE:
|- # Release if there is a release tag name or a release flag in workflow_dispatch
${{ github.event.release.tag_name != '' || github.event.inputs.release == 'true' }}
concurrency:
group: windows-x86-${{ github.ref }}
@@ -124,7 +114,7 @@ jobs:
.github/scripts/test-online-transducer.sh
- name: Copy files
if: env.RELEASE == 'true' && matrix.vs-version == 'vs2015'
if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
shell: bash
run: |
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
@@ -139,7 +129,7 @@ jobs:
tar cjvf ${dst}.tar.bz2 $dst
- name: Release pre-compiled binaries and libs for Windows x86
if: env.RELEASE == 'true' && matrix.vs-version == 'vs2015'
if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
file_glob: true