~增加编译时使用最新证书

This commit is contained in:
juewuy
2025-12-07 11:09:02 +08:00
parent c299de24fc
commit e63552baf6

View File

@@ -131,6 +131,12 @@ jobs:
echo "BUILDTIME=$(date)" >> $GITHUB_ENV
shell: bash
- name: Update CA
run: |
sudo apt-get update && sudo apt-get install ca-certificates
sudo update-ca-certificates
cp -f /etc/ssl/certs/ca-certificates.crt component/ca/ca-certificates.crt
- name: build core
id: build
run: go build -v -trimpath -ldflags "-X 'github.com/metacubex/mihomo/constant.Version=${VERSION}' -X 'github.com/metacubex/mihomo/constant.BuildTime=${BUILDTIME}' -s -w -buildid=" -tags "${TAGS}" -o meta