fixup! Update ci workflow to work with forgejo
Some checks failed
CI / build (push) Failing after 30s

This commit is contained in:
Fabian Hauser 2024-09-27 17:09:29 +03:00
parent 004186072b
commit 4db82bb00a

View file

@ -17,21 +17,17 @@ jobs:
steps:
- name: Setup NIX CI Environment
run: |
nix profile install nixpkgs#git-lfs
nix profile install nixpkgs#git-lfs nixpkgs#gnused
echo "substituters = https://nixpkgs-cache.qo.is?priority=39" >> /etc/nix/nix.conf
echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" >> /etc/nix/nix.conf
mkdir -p ~/.config/nix && cp /etc/nix/nix.conf ~/.config/nix/
- name: Checkout Repository
shell: "nix shell nixpkgs#git-lfs --command {0}"
shell: "nix shell nixpkgs#git-lfs nixpkgs#gnused --command {0}"
run: |
mkdir ~/.config/git
cat <<__EOF__ > ~/.config/git/config
[credential "$GITHUB_SERVER_URL"]
username = oauth2
helper = "!f() { test \"$1\" = get && echo \"password=$(echo $GITHUB_TOKEN)\"; }; f"
__EOF__
git config --global credential.helper store
echo "$GITHUB_SERVER" | sed "s%https://%https://oauth2:$GITHUB_TOKEN@%" > ~/.git-credentials
git lfs install
git clone --no-checkout $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
git lfs install --local
git checkout --recurse-submodules $GITHUB_REF
git lfs pull
- name: Run Nix Build