From 0df614d8858eec5c56e0f86dde51e5eed3035ac8 Mon Sep 17 00:00:00 2001 From: Fabian Hauser Date: Fri, 27 Sep 2024 16:38:35 +0300 Subject: [PATCH] fixup! Update ci workflow to work with forgejo --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97b5d25..cf262d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,13 +15,19 @@ jobs: runs-on: ubuntu-22.04 container: nixpkgs/nix-flakes:nixos-24.05 steps: - - name: Checkout lfs + - name: Setup NIX CI Environment + run: | + nix profile install nixpkgs#git-lfs + 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}" run: | git clone --no-checkout https://oauth2:$GITHUB_TOKEN@git.qo.is/$GITHUB_REPOSITORY . git lfs install --local - git lfs fetch $GITHUB_REF git checkout --recurse-submodules $GITHUB_REF + git lfs pull - name: Run Nix Build shell: "nix shell nixpkgs#git-lfs --command {0}" run: nix build .