修改了action #3
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: BuildForWindws | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.12" | |
- name: Install pip | |
run: python -m ensurepip --upgrade | |
- name: Install make | |
run: | | |
choco install make | |
- name: Refresh environment variables | |
run: | | |
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 | |
refreshenv | |
- name: Make Release Dir | |
run: | | |
cd target | |
mkdir release | |
- name: Install required libraries | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r target/Python/needlibs.txt | |
- name: Build project | |
run: | | |
cd target/build | |
make VERSION=release build |