From 74ac3a889bbd432d3521c5a5e7deee5618cd8d08 Mon Sep 17 00:00:00 2001 From: Bastien Riviere Date: Sun, 3 Sep 2023 19:46:38 +0200 Subject: [PATCH] fix(ci): add sudo and /var/empty --- .forgejo/workflows/nix.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/nix.yaml b/.forgejo/workflows/nix.yaml index 412b60e..55ca015 100644 --- a/.forgejo/workflows/nix.yaml +++ b/.forgejo/workflows/nix.yaml @@ -11,8 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - run: apt-get update && apt-get install -y sudo + - run: mkdir /var/empty && chown root:root /var/empty && chmod 555 /var/empty - uses: cachix/install-nix-action@v22 with: - github_access_token: ${{ secrets.GITHUB_TOKEN }} + github_access_token: ${{ secrets.GH_TOKEN }} - run: nix build - run: nix flake check