Skip to content

Commit

Permalink
chore: Modernize build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
F1F88 committed Nov 10, 2024
1 parent 72babe3 commit 9fde452
Show file tree
Hide file tree
Showing 5 changed files with 479 additions and 429 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
sm_branch: "1.11-dev"

env:
ARCH: x86,x86_64
# 设置 Windows 系统的 Python 的默认编码为 UTF-8
# 以修复 build 时错误: UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 7158: character maps to <undefined>
if: runner.os == 'Windows'
Expand Down Expand Up @@ -119,7 +120,7 @@ jobs:
working-directory: extension
run: |
mkdir build && cd build
python ../configure.py --enable-optimize --symbol-files --sm-path="${{ github.workspace }}/sourcemod-${{ matrix.sm_version }}"
python ../configure.py --enable-optimize --symbol-files --sm-path="${{ github.workspace }}/sourcemod-${{ matrix.sm_version }}" --targets=${{ env.ARCH }}
ambuild
- name: Uploading package
Expand Down
Loading

0 comments on commit 9fde452

Please sign in to comment.