Skip to content

update-flake

update-flake #1183

Workflow file for this run

name: update-flake
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: "0 19 * * *"
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
if: ${{ !env.ACT }}
uses: docker/setup-qemu-action@v3
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable-small
extra_nix_config: |
extra-platforms = aarch64-linux
sandbox = false # can't install in act without this
- name: Set up cachix
uses: cachix/cachix-action@v15
with:
name: eh5
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Update flake.lock
run: nix flake update
- name: Run flake check
run: nix flake check
- name: Build develop profile (x86_64-linux)
run: nix develop .#devShells.x86_64-linux.default --profile dev -c true
- name: Build develop profile (aarch64-linux)
if: ${{ !env.ACT }}
run: timeout 120m nix develop .#devShells.aarch64-linux.default --profile dev-aarch64 -c true
- name: Build home configuration
run: nix build .#homeConfigurations.eh5.activationPackage --no-link
- name: Commit changes
if: ${{ !env.ACT }}
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
commit_message: "chore: update flake"