Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: 安装系统依赖
run: sudo apt-get update && sudo apt-get install -y binutils

- name: 安装 uv
uses: astral-sh/setup-uv@v4
with:
Expand Down
64 changes: 32 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
- os: ubuntu-latest
artifact_name: fnos-git-auth-linux-x86_64
arch: x64
# Linux ARM64 (使用 QEMU 模拟)
- os: ubuntu-latest
artifact_name: fnos-git-auth-linux-arm64
arch: arm64
qemu: true
# Linux ARM64: 暂不支持,QEMU + Docker 环境配置复杂
# - os: ubuntu-latest
# artifact_name: fnos-git-auth-linux-arm64
# arch: arm64
# qemu: true
# Windows x64
- os: windows-latest
artifact_name: fnos-git-auth-windows-x64.exe
Expand All @@ -43,12 +43,12 @@ jobs:
- name: 检出代码
uses: actions/checkout@v4

# Linux ARM64: 使用 QEMU 模拟
- name: 设置 QEMU (Linux ARM64)
if: matrix.qemu
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
# Linux ARM64: 暂不支持
# - name: 设置 QEMU (Linux ARM64)
# if: matrix.qemu
# uses: docker/setup-qemu-action@v3
# with:
# platforms: arm64

- name: 安装 uv
uses: astral-sh/setup-uv@v4
Expand Down Expand Up @@ -76,27 +76,27 @@ jobs:
--hidden-import=Crypto.Hash \
main.py

# Linux ARM64: 使用 Docker 构建
- name: 构建 Linux ARM64
if: matrix.qemu
run: |
docker run --rm --platform linux/arm64 \
-v ${{ github.workspace }}:/app \
-w /app \
python:3.12-slim \
bash -c "
pip install uv &&
uv sync --all-extras --dev &&
uv run pyinstaller --onefile --clean --noconfirm \
--name=${{ matrix.artifact_name }} \
--hidden-import=websockets \
--hidden-import=click \
--hidden-import=Crypto \
--hidden-import=Crypto.Cipher \
--hidden-import=Crypto.PublicKey \
--hidden-import=Crypto.Hash \
main.py
"
# Linux ARM64: 暂不支持
# - name: 构建 Linux ARM64
# if: matrix.qemu
# run: |
# docker run --rm --platform linux/arm64 \
# -v ${{ github.workspace }}:/app \
# -w /app \
# python:3.12-slim \
# bash -c "
# pip install uv &&
# uv sync --all-extras --dev &&
# uv run pyinstaller --onefile --clean --noconfirm \
# --name=${{ matrix.artifact_name }} \
# --hidden-import=websockets \
# --hidden-import=click \
# --hidden-import=Crypto \
# --hidden-import=Crypto.Cipher \
# --hidden-import=Crypto.PublicKey \
# --hidden-import=Crypto.Hash \
# main.py
# "

# Windows ARM64: 使用 Nuitka 交叉编译(PyInstaller 不支持)
- name: 构建 Windows ARM64 (跳过,暂不支持)
Expand Down
Loading