fix: nix build di CI — init none + flakes enabled
Build & Deploy (Nix) / build-and-deploy (push) Successful in 49s

This commit is contained in:
Claude
2026-07-30 16:23:15 +07:00
parent 73b0630cbd
commit f00b944e56
+9 -3
View File
@@ -15,16 +15,22 @@ jobs:
git clone https://git.imrnes.team/MythEclipse/TeleUploader.git . git clone https://git.imrnes.team/MythEclipse/TeleUploader.git .
git checkout ${{ github.sha }} git checkout ${{ github.sha }}
- name: Build with Nix - name: Install Nix & Build
run: | run: |
set -eu set -eu
# Install Nix via DeterminateSystems # Install Nix (container-safe: no systemd, root-only mode)
curl -fsSL https://install.determinate.systems/nix \ 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 . /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 nix build .#teleuploader --impure --option sandbox false 2>&1
echo "$(readlink result)" > /tmp/teleuploader-store-path echo "$(readlink result)" > /tmp/teleuploader-store-path