Skip to content

修改了action

修改了action #3

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