ci: replace actions/checkout with manual clone
smoke / nanochat-smoke (push) Successful in 18s

actions/checkout@v4 on a subpath-mounted gitea (ROOT_URL=
https://famzheng.me/gitea/) resolves $github.server_url to
https://famzheng.me/ (without /gitea/), so the clone fetches
https://famzheng.me/fam/nanochat-omni and 404s. Clone manually
against the full URL.
This commit is contained in:
Fam Zheng
2026-05-05 22:04:43 +01:00
parent c1108ae01f
commit 94f115094e
+8 -1
View File
@@ -8,7 +8,14 @@ jobs:
runs-on: gpu
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: checkout
# actions/checkout@v4 mis-resolves server_url on subpath gitea
# (drops /gitea/ prefix), so clone manually.
run: |
git init .
git remote add origin https://famzheng.me/gitea/${{ github.repository }}.git
git fetch --depth=1 origin ${{ github.sha }}
git checkout FETCH_HEAD
- name: nvidia-smi
run: nvidia-smi --query-gpu=name,memory.free,memory.used --format=csv
- name: smoke