ThinBridge / Chronos

Chromiumベースの業務ブラウザ
Other
5 stars 3 forks source link

ci: fix cached CEF version #240

Open HashidaTKS opened 1 day ago

HashidaTKS commented 1 day ago

We sometimes cache wrong versions of CEF.

E.g. https://github.com/ThinBridge/Chronos/actions/runs/11883987712/job/33111526585

In stable uses 131.2.3: TARGET_VERSION=131.2.3+g023a05b+chromium-131.0.6778.70 In beta uses 131.1.0: TARGET_VERSION=131.1.0+gb91be9f+chromium-131.0.6778.13

beta should use a newer version than stable, but they are reversed.

HashidaTKS commented 1 day ago

https://github.com/ThinBridge/Chronos/blob/master/.github/rewrite-cef-version.sh

curl --silent https://cef-builds.spotifycdn.com/index.json
jq --raw-output '.windows32.versions[] | select(.channel =="beta").cef_version'
head -n 1

In that script, we get the first line that channel is beta, but it is not necessarily the latest.