diff --git a/.gitea/workflows/smoke.yml b/.gitea/workflows/smoke.yml index e7c5dbc..c87925f 100644 --- a/.gitea/workflows/smoke.yml +++ b/.gitea/workflows/smoke.yml @@ -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