Run a different devshell on CI
Compile All / compile (push) Has been cancelled

This commit is contained in:
2026-07-12 15:30:56 +00:00
parent 49de1f1934
commit c8ebb8df7d
2 changed files with 23 additions and 2 deletions
+4 -2
View File
@@ -20,6 +20,8 @@ jobs:
cp secrets.yaml.sample secrets.yaml
cp templates/secrets.yaml.sample templates/secrets.yaml
# Uses the ci shell, which installs esphome via pipx at the exact version
# pinned in Nix. The ci shell avoids nixpkgs wrapping platformio in bwrap,
# which fails on CI runners that disallow unprivileged user namespaces.
- name: Compile All
run: |
nix develop --command make compile-all -j4
run: nix develop .#ci --command make compile-all -j4
+19
View File
@@ -56,6 +56,25 @@
esphome --version
'';
};
# CI shell: uses the same esphome version as default, but installs it
# via pipx to avoid nixpkgs wrapping platformio in bwrap, which fails
# on CI runners that disallow unprivileged user namespaces.
ci = pkgs.mkShell {
buildInputs = with pkgs; [
python3
python3Packages.pipx
esptool
gnumake
];
shellHook = ''
pipx install --quiet esphome==${pkgs.esphome.version}
export PATH="$HOME/.local/bin:$PATH"
echo -n "ESPHome (CI) "
esphome --version
'';
};
}
);
};