add missing endpoints in spearlet (#42) #4
Workflow file for this run
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
| name: Create Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' # 仅在版本标签推送时触发 | |
| jobs: | |
| create-release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # 允许写入内容 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # 拉取完整提交历史 | |
| fetch-tags: true # 关键:拉取所有标签 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.23' # 请根据需要选择合适的 Go 版本 | |
| - name: Install Flatbuffers | |
| run: | | |
| wget -q https://github.com/google/flatbuffers/releases/download/v24.12.23/Linux.flatc.binary.clang++-18.zip | |
| unzip Linux.flatc.binary.clang++-18.zip | |
| sudo cp flatc /usr/local/bin | |
| rm flatc Linux.flatc.binary.clang++-18.zip | |
| - name: Verify Go Version | |
| run: go version | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.13' | |
| - name: Verify Python Version | |
| run: python --version | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install build | |
| - name: Install Docker | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Install Dependencies & Compile Files | |
| run: | | |
| sudo apt install portaudio19-dev libx11-dev libxtst-dev | |
| # curl -fsSL https://get.docker.com -o get-docker.sh | |
| # sudo sh get-docker.sh | |
| make | |
| - name: Create GitHub Release | |
| id: create_release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| release_name: Release ${{ github.ref_name }} | |
| body: | | |
| SPEAR release version ${{ github.ref_name }}. | |
| files: | | |
| ./bin/spearlet | |
| ./sdk/python/dist/spearlet-*.whl | |
| ./sdk/python/dist/spearlet-*.tar.gz | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用 GitHub 提供的令牌 |