1
0

feat: CI check job 扩展为三平台 matrix 并行 lint/test

将 test.yml 的 check job 从单平台 ubuntu 改为 ubuntu/macos/windows 三平台并行,
Linux 额外安装 libayatana-appindicator3-dev 以支持 systray CGo 编译。
This commit is contained in:
2026-05-07 17:07:55 +08:00
parent d8e64ef0e9
commit 6908b9653b
2 changed files with 39 additions and 9 deletions

View File

@@ -14,8 +14,11 @@ permissions:
jobs:
check:
name: Check
runs-on: ubuntu-latest
name: Check (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
@@ -23,6 +26,10 @@ jobs:
with:
lfs: true
- name: Install Linux system dependencies
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libayatana-appindicator3-dev
- name: Setup Go
uses: actions/setup-go@v6
with: