From f00b944e567f98c71796d84a4c4bbfad137aeae2 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 30 Jul 2026 16:23:15 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20nix=20build=20di=20CI=20=E2=80=94=20init?= =?UTF-8?q?=20none=20+=20flakes=20enabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index becf62e..ffd9f3a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -15,16 +15,22 @@ jobs: git clone https://git.imrnes.team/MythEclipse/TeleUploader.git . git checkout ${{ github.sha }} - - name: Build with Nix + - name: Install Nix & Build run: | set -eu - # Install Nix via DeterminateSystems + # Install Nix (container-safe: no systemd, root-only mode) curl -fsSL https://install.determinate.systems/nix \ - | sh -s -- install --no-confirm 2>&1 + | sh -s -- install linux --no-confirm --init none 2>&1 + # Enable flakes for Nix build + mkdir -p /etc/nix + echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf + + # Source Nix profile . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh + # Build (prefer binary cache — no sandbox in container) nix build .#teleuploader --impure --option sandbox false 2>&1 echo "$(readlink result)" > /tmp/teleuploader-store-path