This commit is contained in:
shenjack 2022-12-30 11:40:03 +08:00
parent df196a220c
commit a5f9e3ec1b
2 changed files with 4 additions and 7 deletions

View File

@ -9,9 +9,8 @@ import sys
sys.path.append(os.path.abspath(os.curdir))
if '-env' not in sys.argv:
print(os.path.abspath(os.curdir))
print(os.listdir('.'))
print(sys.path)
print(sys.version)
print(os.getenv('env:GITHUB_SHA'))
if os.path.abspath(os.curdir) in sys.path:
from Difficult_Rocket import DR_runtime

View File

@ -50,8 +50,6 @@ jobs:
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
cache: 'pip'
cache-dependency-path: '**/requirement*.txt'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
# 安装依赖
- name: Install env
@ -60,13 +58,13 @@ jobs:
pip install nuitka orderedset
# 提取 DR 版本和其他信息
- name: Get Difficult-Rocket info
- name: Display Difficult-Rocket info
id: DR_info
shell: pwsh
run: |
python .github/workflows/get_info.py
$infos = python .github/workflows/get_info.py -env
Write-Output $infos >> $env:GITHUB_ENV
python .github/workflows/get_info.py
# 还是得我自己写脚本
- name: Build on Windows