Skip to content

feat; timeout去除 #12

feat; timeout去除

feat; timeout去除 #12

Workflow file for this run

name: Python Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
name: Build Executables
runs-on: ${{ matrix.config.os.name }}
strategy:
matrix:
config:
- os:
name: ubuntu-latest
filename: Linux
- os:
name: macos-14
filename: MacOS_amd64
- os:
name: macos-12
filename: MacOS_x64
- os:
name: windows-latest
filename: Windows
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
cache: 'pip'
- name: Upgrade setuptools, wheel, and install requirements
run: |
pip install --upgrade setuptools wheel pyinstaller~=5.13.2 && pip install -r requirements.txt
- name: Build Pyinstaller
shell: bash
run: |
pyinstaller main.spec
- name: Zip the Build-windows
if: matrix.config.os.filename == 'Windows'
run: Compress-Archive -Path ./dist/cppTicKerBuy.exe -DestinationPath tmp.zip
- name: Zip the Build-linux
if: matrix.config.os.filename != 'Windows'
run: |
cd ./dist
zip -r ../tmp.zip cppTickerBuy
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
file: tmp.zip
asset_name: cppTicKerBuy_${{ matrix.config.os.filename }}_${{ github.ref_name }}.zip
tag: ${{ github.ref }}
overwrite: true