ci(codeql): avoid setup-go action in matrix

This commit is contained in:
Aethersailor
2026-05-26 20:58:47 +08:00
parent 851f49fb64
commit 223b885071

View File

@@ -74,9 +74,13 @@ jobs:
# [SETUP] Build Go library (libmihomo.a) for C++ linkage
- name: Setup Go
if: matrix.language == 'c-cpp'
uses: actions/setup-go@v6
with:
go-version: 'stable'
shell: bash
run: |
if ! command -v go >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y --no-install-recommends golang-go
fi
go version
- name: Build libmihomo.a
if: matrix.language == 'c-cpp'