From dc41e6b4fca85c4b905c133e786571de30febc63 Mon Sep 17 00:00:00 2001 From: Fabian Hauser Date: Fri, 27 Sep 2024 15:15:59 +0300 Subject: [PATCH] fixup! Update ci workflow to work with forgejo --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 591d0a7..ff8baa4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,19 +13,20 @@ concurrency: jobs: build: runs-on: ubuntu-22.04 + container: nixpkgs/nix-flakes:nixos-24.05 steps: - - uses: actions/checkout@v4 - with: - persist-credentials: 'true' # Optional; should be the default - name: Checkout lfs + shell: "nix shell nixpkgs#git-lfs --command {0}" run: | + git clone --no-checkput https://oauth2:$GITHUB_TOKEN@git.qo.is/$GITHUB_REPOSITORY . git lfs install --local + git checkout $GITHUB_REF AUTH=$(git config --local http.${{ github.server_url }}/.extraheader) git config --local --unset http.${{ github.server_url }}/.extraheader git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" git lfs pull - name: Run Nix Build - uses: docker://hub.docker.com/nixpkgs/nix-flakes:nixos-24.05 + shell: "nix shell nixpkgs#git-lfs --command {0}" run: nix build . # - uses: actions/upload-pages-artifact@v3 # with: