ci: download lfs modules when building
This commit is contained in:
parent
3414e63489
commit
a141b6c865
1 changed files with 12 additions and 0 deletions
|
@ -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=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \
|
||||||
|
/usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \
|
||||||
|
/usr/bin/git config --local http.${UrlLfsBase}/.extraheader ''
|
||||||
|
|
||||||
|
git config --local lfs.transfer.maxretries 1
|
||||||
|
|
||||||
|
/usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }}
|
||||||
|
/usr/bin/git lfs checkout
|
||||||
- name: "Build it locally"
|
- name: "Build it locally"
|
||||||
run: nix build --verbose
|
run: nix build --verbose
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue