Skip to content

fix: 由于一个彩蛋引发的血案 #204

fix: 由于一个彩蛋引发的血案

fix: 由于一个彩蛋引发的血案 #204

Workflow file for this run

name: CI
on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
workflow_dispatch:
permissions:
contents: write
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Build Binary
run: pyinstaller main.spec
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: BHYG-Windows
path: dist
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/BHYG-Windows.exe
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Build Binary
run: pyinstaller main.spec
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: BHYG-Linux
path: dist
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/BHYG-Linux
macos-x64:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Build Binary
run: pyinstaller main.spec
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: BHYG-macOS-Intel
path: dist
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/BHYG-macOS-Intel
macos-arm64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Build Binary
run: pyinstaller main.spec
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: BHYG-macOS-Apple_Silicon
path: dist
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/BHYG-macOS-Apple_Silicon