feat: update CI and logging config
This commit is contained in:
parent
fb37486223
commit
bc3167f1d5
14
.github/workflows/nuitka.yml
vendored
14
.github/workflows/nuitka.yml
vendored
@ -55,7 +55,7 @@ jobs:
|
||||
- name: Install env
|
||||
run: |
|
||||
pip install -r requirement.txt
|
||||
pip install nuitka orderedset==2.0.2
|
||||
# pip install nuitka orderedset==2.0.2
|
||||
|
||||
# 提取 DR 版本和其他信息
|
||||
- name: Display Difficult-Rocket info
|
||||
@ -96,6 +96,9 @@ jobs:
|
||||
$arg += @("--assume-yes-for-download")
|
||||
python -m nuitka $arg DR.py
|
||||
|
||||
Rename-Item ./build/DR.dist Difficult-Rocket
|
||||
|
||||
|
||||
- name: Build on MacOS / Linux
|
||||
if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }}
|
||||
shell: pwsh
|
||||
@ -124,6 +127,7 @@ jobs:
|
||||
$arg += @("--assume-yes-for-download")
|
||||
python -m nuitka $arg DR.py
|
||||
|
||||
Rename-Item ./build/DR.dist Difficult-Rocket
|
||||
|
||||
# # 输出配置
|
||||
# arg="--standalone "
|
||||
@ -144,9 +148,9 @@ jobs:
|
||||
# arg+="--assume-yes-for-download "
|
||||
# python -m nuitka $arg DR.py
|
||||
|
||||
- name: after build
|
||||
shell: pwsh
|
||||
run: python ./.github/workflows/after_compile.py
|
||||
# - name: after build
|
||||
# shell: pwsh
|
||||
# run: python ./.github/workflows/after_compile.py
|
||||
|
||||
# Uploads artifact
|
||||
- name: Upload Artifact
|
||||
@ -154,4 +158,4 @@ jobs:
|
||||
with:
|
||||
name: Difficult-Rocket_v${{env.DR_version}}-${{runner.os}}${{matrix.python-version}}-Build.${{github.run_number}}+${{env.short_sha}}.zip
|
||||
path: |
|
||||
build/*.zip
|
||||
build/Difficult-Rocket*
|
@ -7,17 +7,17 @@ handlers = [ "console", "file"]
|
||||
[formatters.file]
|
||||
class = "logging.Formatter"
|
||||
format = "[%(asctime)s][%(name)s]:[%(levelname)s] %(message)s"
|
||||
datefmt = "%Y-%m-%d %H-%M-%S"
|
||||
datefmt = "%Y-%m-%d %H:%M:%S"
|
||||
|
||||
[formatters.client]
|
||||
class = "logging.Formatter"
|
||||
format = "[%(asctime)s][%(name)s]:[%(levelname)s] %(message)s"
|
||||
datefmt = "%Y-%m-%d %H-%M-%S"
|
||||
datefmt = "%Y-%m-%d %H:%M:%S"
|
||||
|
||||
[formatters.server]
|
||||
class = "logging.Formatter"
|
||||
format = "[%(asctime)s][%(name)s]:[%(levelname)s] %(message)s"
|
||||
datefmt = "%Y-%m-%d %H-%M-%S"
|
||||
datefmt = "%Y-%m-%d %H:%M:%S"
|
||||
|
||||
[handlers.console]
|
||||
class = "logging.StreamHandler"
|
||||
@ -27,7 +27,7 @@ level = "DEBUG"
|
||||
[handlers.file]
|
||||
class = "logging.FileHandler"
|
||||
filename = "{} DR.log"
|
||||
datefmt = "%Y-%m-%d %H-%M-%S"
|
||||
datefmt = "%Y-%m-%d %H:%M:%S"
|
||||
encoding = "utf-8"
|
||||
formatter = "file"
|
||||
level = "DEBUG"
|
||||
|
@ -15,4 +15,8 @@ defusedxml
|
||||
|
||||
# 用于 debug
|
||||
objprint
|
||||
# viztracer
|
||||
# viztracer
|
||||
|
||||
# 编译
|
||||
nuitka
|
||||
orderedset
|
||||
|
Loading…
Reference in New Issue
Block a user