github workflow to compile esphome files
Compile ESPHome / compile (push) Has been cancelled

This commit is contained in:
2026-05-10 16:23:11 +00:00
parent ec837d2c28
commit 4fe6bf63cf
2 changed files with 42 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
name: Compile ESPHome
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
sandbox = false
- name: Enable unprivileged user namespaces
run: sudo sysctl -w kernel.unprivileged_userns_clone=1 || true
- name: Install direnv
run: sudo apt-get install -y direnv
- name: Prepare secrets
run: |
if [ -f templates/secrets.yaml.sample ]; then
cp templates/secrets.yaml.sample secrets.yaml
elif [ -f secrets.yaml.sample ]; then
cp secrets.yaml.sample secrets.yaml
fi
- name: Allow direnv
run: direnv allow .
- name: Compile
run: direnv exec . ./reflash.sh compile ''
+1
View File
@@ -18,6 +18,7 @@
esphome esphome
esptool esptool
cc2538-bsl cc2538-bsl
zsh
]; ];
shellHook = '' shellHook = ''