Skip to content

Commit 9a36e24

Browse files
committed
chore(ci): simplify CI workflow by removing Docker and updating Ubuntu versions
Removed Docker-based builds and simplified Linux builds to use native runners. Updated Ubuntu versions to 24.04 and removed ARM64 Docker setup. Also removed tag-triggered builds and streamlined artifact paths.
1 parent eec2fbf commit 9a36e24

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- '**'
7-
tags:
8-
- 'v*'
97
release:
108
types: [created]
119

@@ -15,14 +13,12 @@ jobs:
1513
matrix:
1614
include:
1715
# --- Linux ---
18-
- os: ubuntu-latest
16+
- os: ubuntu-24.04
1917
arch: x86_64
2018
asset_suffix: linux-x86_64
21-
docker_platform: linux/amd64
22-
- os: ubuntu-latest
19+
- os: ubuntu-24.04-arm64
2320
arch: arm64
2421
asset_suffix: linux-arm64
25-
docker_platform: linux/arm64
2622
# --- MacOS ---
2723
- os: macos-14 # arm64 runner
2824
arch: arm64
@@ -41,29 +37,21 @@ jobs:
4137
- name: Checkout code
4238
uses: actions/checkout@v4
4339

44-
# ==== Linux(本机/容器多架构) ====
45-
- name: Set up QEMU for ARM
46-
if: startsWith(matrix.os, 'ubuntu')
47-
uses: docker/setup-qemu-action@v3
48-
4940
- name: Set up Python
5041
uses: actions/setup-python@v4
5142
with:
5243
python-version: '3.x'
5344

54-
- name: Build on Linux Multi-Arch (via Docker)
45+
# ==== Linux (native runners, no Docker) ====
46+
- name: Build on Linux (native)
5547
if: startsWith(matrix.os, 'ubuntu')
5648
run: |
57-
docker run --rm --platform=${{ matrix.docker_platform }} \
58-
-v $PWD:/workspace -w /workspace \
59-
python:3 bash -c "
60-
apt-get update && apt-get install -y gcc && \
61-
pip install -r requirements.txt && pip install pyinstaller && \
62-
chmod +x build.sh && ./build.sh auto && \
63-
cp -r dist dist_${{ matrix.asset_suffix }}
64-
"
49+
pip install -r requirements.txt
50+
pip install pyinstaller
51+
chmod +x build.sh
52+
./build.sh auto
6553
mkdir -p release
66-
cp dist_${{ matrix.asset_suffix }}/tricode* release/tricode-${{ matrix.asset_suffix }}
54+
cp dist/tricode* release/tricode-${{ matrix.asset_suffix }}
6755
6856
# ==== MacOS ====
6957
- name: Build on macOS
@@ -92,7 +80,7 @@ jobs:
9280
with:
9381
name: tricode-${{ matrix.asset_suffix }}
9482
path: |
95-
release/tricode-${{ matrix.asset_suffix }}*
83+
dist/tricode-${{ matrix.asset_suffix }}*
9684
9785
- name: Upload to release
9886
if: github.event_name == 'release'

0 commit comments

Comments
 (0)