Skip to content

Commit

Permalink
ci: add workflows for building the minimal flake
Browse files Browse the repository at this point in the history
closes GH-10
  • Loading branch information
21CSM committed Sep 14, 2024
1 parent e6ab7c3 commit 0e064f0
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 18 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "ci"
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build

on:
push:
branches: [develop, main]
pull_request:
branches: [develop, main]
workflow_dispatch:

jobs:
flake-health-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check flake health
uses: DeterminateSystems/flake-checker-action@v9

build:
runs-on: ubuntu-latest
needs: flake-health-check
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v14
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Run Nix flake checks
run: |
nix flake check
18 changes: 0 additions & 18 deletions .github/workflows/github-actions-demo.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Update flake.lock

on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:

jobs:
lockfile:
name: Run update
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v14
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Check flake health
uses: DeterminateSystems/flake-checker-action@v9
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v24
with:
commit-msg: "build(nix): update flake.lock"
pr-assignees: 21CSM
pr-reviewers: 21CSM
pr-title: "Update flake.lock"

0 comments on commit 0e064f0

Please sign in to comment.