ci: update xmake repositories before builds

This commit is contained in:
dijunkun
2026-07-21 17:59:14 +08:00
parent c400e75d32
commit cc2c7c695c
+9
View File
@@ -108,6 +108,11 @@ jobs:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.92.0
echo "${HOME}/.cargo/bin" >> "${GITHUB_PATH}"
- name: Update xmake repositories
env:
XMAKE_GLOBALDIR: /data
run: xmake repo -u --root
- name: Build CrossDesk
env:
CUDA_PATH: /usr/local/cuda
@@ -197,6 +202,9 @@ jobs:
- name: Install xmake
run: brew install xmake
- name: Update xmake repositories
run: xmake repo -u
- name: Checkout code
uses: actions/checkout@v5
@@ -283,6 +291,7 @@ jobs:
run: |
Invoke-Expression (Invoke-Webrequest 'https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.ps1' -UseBasicParsing).Content
echo "C:\Users\runneradmin\xmake" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
xmake repo -u
xmake create cuda
Set-Location cuda
xmake g --theme=plain