ci: download lfs modules when building
All checks were successful
On_Push / build (push) Successful in 8s
On_Push / deploy (push) Successful in 9s

This commit is contained in:
silver 2024-08-11 20:31:46 +01:00
parent 3414e63489
commit a8460a130e
Signed by: silver
GPG key ID: 0A1071E702CE4B4E

View file

@ -16,6 +16,18 @@ jobs:
steps: steps:
# get the repo first # get the repo first
- uses: https://code.forgejo.org/actions/checkout@v4 - uses: https://code.forgejo.org/actions/checkout@v4
- name: Checkout LFS
run: |
UrlBase=$GITHUB_SERVER_URL; \
UrlLfsBase=$UrlBase/${{ gitea.repository }}.git/info/lfs/objects; \
Auth=`git config --get --local http.$UrlBase/.extraheader`; \
git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \
git config --local http.${UrlLfsBase}/.extraheader ''
git config --local lfs.transfer.maxretries 1
git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }}
git lfs checkout
- name: "Build it locally" - name: "Build it locally"
run: nix build --verbose run: nix build --verbose