C++测试器build-7 #19
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: C++ Tester Windows | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Install Pyinstaller | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyinstaller | |
pip install -r requirements.txt | |
- name: Build | |
run: | | |
pyinstaller BuildMe.py | |
- name: Copy License | |
run: | | |
copy LICENSE dist/BuildMe/LICENSE | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: C++Tester | |
path: dist/* |